<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>code on Christian Knedel</title>
    <link>https://www.christian-knedel.de/zh/tags/code/</link>
    <description>Recent content in code on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 24 Mar 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/zh/tags/code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>小故事：我的Gitlab设置</title>
      <link>https://www.christian-knedel.de/zh/post/2021/march/20210324-gitlab-setup/</link>
      <pubDate>Wed, 24 Mar 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/march/20210324-gitlab-setup/</guid>
      <description>在我第一篇关于 &amp;ldquo;Gitlab on the Synology disk station &amp;ldquo;的教程之后，已经有好几次有人问我是否还在使用这个方案。没有!同时，我已经把我的Atlassian工具和下面的GitLab安装移到了intel NUC上。在此我展示了我目前的Compose文件，当然它也可以在Synology磁盘站上运行。 你可以清楚地看到我现在对OpenLDAP、容器注册表、邮件、证书和日志进行了特殊的设置。此外，由于我使用Atlassian-Jira和Atlassian-Confluence，维基和问题跟踪器功能已被停用。正如你所看到的，Gitlab是非常可定制的。玩得开心!
version: &#39;2&#39; services: gitlab: image: &#39;gitlab/gitlab-ce:latest&#39; restart: always container_name: &#39;gitlab_server_gitlab&#39; environment: TZ: &amp;quot;Europe/Berlin&amp;quot; GITLAB_OMNIBUS_CONFIG: | gitlab_rails[&#39;time_zone&#39;] = &#39;Europe/Berlin&#39; external_url &#39;https://host:port&#39; registry_external_url &#39;https://host:registry_port&#39; registry_nginx[&#39;listen_https&#39;] = true nginx[&#39;redirect_http_to_https&#39;] = true registry_nginx[&#39;redirect_http_to_https&#39;] = true mattermost_nginx[&#39;redirect_http_to_https&#39;] = true registry_nginx[&#39;ssl_certificate&#39;] = &amp;quot;..server-cert.crt&amp;quot; registry_nginx[&#39;ssl_certificate_key&#39;] = &amp;quot;...server-cert.key&amp;quot; gitlab_rails[&#39;gitlab_default_projects_features_issues&#39;] = false gitlab_rails[&#39;gitlab_default_projects_features_container_registry&#39;] = true postgresql[&#39;enable&#39;] = false gitlab_rails[&#39;db_username&#39;] = &amp;quot;****&amp;quot; gitlab_rails[&#39;db_password&#39;] = &amp;quot;****&amp;quot; gitlab_rails[&#39;db_host&#39;] = &amp;quot;postgresql&amp;quot; gitlab_rails[&#39;db_port&#39;] = &amp;quot;5432&amp;quot; gitlab_rails[&#39;db_database&#39;] = &amp;quot;gitlabhq_production&amp;quot; gitlab_rails[&#39;db_adapter&#39;] = &#39;postgresql&#39; gitlab_rails[&#39;db_encoding&#39;] = &#39;utf8&#39; redis[&#39;enable&#39;] = false gitlab_rails[&#39;redis_host&#39;] = &#39;redis&#39; gitlab_rails[&#39;redis_port&#39;] = &#39;6379&#39; gitlab_rails[&#39;gitlab_shell_ssh_port&#39;] = 22 # Limit backup lifetime to 7 days (604800 seconds): gitlab_rails[&#39;backup_keep_time&#39;] = 604800 unicorn[&#39;worker_timeout&#39;] = 60 unicorn[&#39;worker_processes&#39;] = 3 nginx[&#39;enable&#39;] = true nginx[&#39;listen_port&#39;] = 80 nginx[&#39;client_max_body_size&#39;] = &#39;250m&#39; nginx[&#39;listen_port&#39;] = 443 nginx[&#39;redirect_http_to_https&#39;] = true nginx[&#39;ssl_certificate&#39;] = &#39;.</description>
    </item>
    
    <item>
      <title>使用阿特拉斯的酷事：在没有插件的情况下使用Bamboo和jMeter</title>
      <link>https://www.christian-knedel.de/zh/post/2021/march/20210321-atlassian-bamboo-jmeter/</link>
      <pubDate>Sun, 21 Mar 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/march/20210321-atlassian-bamboo-jmeter/</guid>
      <description>今天我在Bamboo中创建一个jMeter测试。当然，你也可以用Gitlab runners或Jenkins slaves实现这个测试设置。
第1步：创建jMeter测试 首先，当然，你必须创建一个jMeter测试。我从以下网址下载了jMeter：https://jmeter.apache.org/，并用这个命令启动它。 x  &amp;ndash;  +   Terminal   $ java -jar bin/ApacheJMeter.jar   请看:我这个教程的演示测试是为了包含有问题的和工作的采样器。我故意把超时设置得很低。      我用JMX文件来保存我的Bamboo任务。
第2步：准备好竹剂 由于Java是奔步代理的先决条件，我只在事后安装Python。 x  &amp;ndash;  +   Terminal   $ apt-get update $ apt-get install python   我创建了一个新的工作和一个外壳任务。    并插入这个shell脚本。
#!/bin/bash java -jar /tools/apache-jmeter-5.4.1/bin/ApacheJMeter.jar -n -t test.jmx -l requests.log &amp;gt; result.log echo &amp;quot;Ergebnis:&amp;quot; cat result.log if cat result.</description>
    </item>
    
  </channel>
</rss>
