80 lines
5.1 KiB
XML
80 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<search>
|
||
<entry>
|
||
<title>About me</title>
|
||
<url>/20240730/about/me/</url>
|
||
<content><![CDATA[<h2 id="about"><a href="#about" class="headerlink" title="about"></a>about</h2>]]></content>
|
||
</entry>
|
||
<entry>
|
||
<title>Hello World</title>
|
||
<url>/20240730/hello-world/</url>
|
||
<content><![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
|
||
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>More info: <a href="https://hexo.io/docs/writing.html">Writing</a></p>
|
||
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p>
|
||
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>More info: <a href="https://hexo.io/docs/generating.html">Generating</a></p>
|
||
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>More info: <a href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
|
||
]]></content>
|
||
</entry>
|
||
<entry>
|
||
<title>Docker被墙,如何继续使用?</title>
|
||
<url>/20240801/frontend/deploy/deploy/</url>
|
||
<content><![CDATA[<h2 id="Docker-Download"><a href="#Docker-Download" class="headerlink" title="Docker Download"></a>Docker Download</h2><blockquote>
|
||
<p>自从docker官方仓库在中国大陆被墙后,docker的部署方式也发生了改变。<br>解决docker安装问题:<a href="https://github.com/shenjianZ/docker_installer">https://github.com/shenjianZ/docker_installer</a></p>
|
||
</blockquote>
|
||
<ol>
|
||
<li><p>安装docker </p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo curl -fsSL https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>启动docker</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo systemctl start docker</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>设置开机自启</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo systemctl enable docker</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>Docker pull images</p>
|
||
<blockquote>
|
||
<p>将image下载到阿里云镜像仓库中<br>解决docker pull 镜像问题:<a href="https://github.com/shenjianZ/docker_image_pusher">https://github.com/shenjianZ/docker_image_pusher</a></p>
|
||
</blockquote>
|
||
<ol>
|
||
<li><p><strong>登录阿里云镜像服务</strong> <a href="https://cr.console.aliyun.com/">https://cr.console.aliyun.com/</a>,</p>
|
||
<p>启用个人实例,创建一个命名空间(<code>ALIYUN_NAME_SPACE</code>)</p>
|
||
</li>
|
||
<li><p>在<strong>访问凭证</strong> 可以看到账号 用户名(<code>ALIYUN_REGISTRY_USER</code>)</p>
|
||
<p>密码(<code>ALIYUN_REGISTRY_PASSWORD</code>)</p>
|
||
<p>仓库地址(<code>ALIYUN_REGISTRY</code>)</p>
|
||
</li>
|
||
<li><p><strong>启动Action</strong><br>进入您自己的项目,点击<code>Action</code>,启用<code>Github Action</code>功能</p>
|
||
</li>
|
||
<li><p><strong>配置环境变量</strong><br>进入Settings->Secret and variables->Actions->New Repository secret<br> 将上一步的四个值<br> <code>ALIYUN_NAME_SPACE</code>,</p>
|
||
<p> <code> ALIYUN_REGISTRY_USER</code>,</p>
|
||
<p> <code>ALIYUN_REGISTRY_PASSWORD</code>,</p>
|
||
<p> <code>ALIYUN_REGISTRY</code><br> 配置成环境变量</p>
|
||
</li>
|
||
<li><p><strong>添加镜像</strong><br> 打开<code>images.txt</code>文件,添加你想要的镜像 可以加tag</p>
|
||
</li>
|
||
<li><p>使用镜像<br>回到阿里云,镜像仓库,点击任意镜像,可查看镜像状态。(可以改成公开,拉取镜像免登录)</p>
|
||
</li>
|
||
</ol>
|
||
</li>
|
||
</ol>
|
||
]]></content>
|
||
</entry>
|
||
<entry>
|
||
<title>page</title>
|
||
<url>/20240801/frontend/frontend/</url>
|
||
<content><![CDATA[<ul>
|
||
<li><a href="./deploy">deploy</a></li>
|
||
<li></li>
|
||
</ul>
|
||
]]></content>
|
||
</entry>
|
||
</search>
|