docker-centos-jenkins

  • V6_223929
    了解作者
  • 18.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-02 17:45
    上传日期
码头工人-centos-詹金斯 一个 Dockerfile,它生成一个基于 CentOS 的 Docker 镜像,该镜像将运行最新的稳定版 。 构建基于 [internavenue/docker-centos-base][docker-centos-base]。 包含的包(及其依赖项) 詹金斯 OpenJDK 1.7 图像创建 此示例创建带有标签internavenue/centos-jenkins的图像,但您可以将其更改为使用您自己的用户名。 $ docker build -t="internavenue/centos-jenkins" . 或者,如果您安装了GNU Make ,您可以运行以下命令... $ make 您还可以指定自定义 docker 用户名,如下所示: $ make DOCKER_USER=internavenue 容器创建/运行 Nginx Web 服
docker-centos-jenkins-master.zip
  • docker-centos-jenkins-master
  • LICENSE.txt
    34.3KB
  • Dockerfile
    902B
  • scripts
  • start.sh
    550B
  • normal_run.sh
    72B
  • first_run.sh
    161B
  • etc
  • jenkins
    6KB
  • README.md
    2KB
  • Makefile
    1.4KB
内容介绍
# docker-centos-jenkins A Dockerfile that produces a CentOS-based Docker image that will run the latest stable [Jenkins][jenkins]. The build is based on [internavenue/docker-centos-base][docker-centos-base]. [Jenkins]: http://jenkins-ci.org/ ## Included packages (and their dependencies) * Jenkins * OpenJDK 1.7 ## Image Creation This example creates the image with the tag `internavenue/centos-jenkins`, but you can change this to use your own username. ``` $ docker build -t="internavenue/centos-jenkins" . ``` Alternately, you can run the following if you have *GNU Make* installed... ``` $ make ``` You can also specify a custom docker username like so: ``` $ make DOCKER_USER=internavenue ``` ## Container Creation / Running The Nginx web server is configured to store web root in `/srv/www` inside the container. You can map the container's `/srv/www` volume to a volume on the host so the data becomes independant of the running container. This example uses `/srv/docker/lon-dev-web` to host the web application, but you can modify this to your needs. When the container runs, it creates a superuser with a random password. You can set the username and password for the superuser by setting the container's environment variables. This lets you discover the username and password of the superuser from within a linked container or from the output of `docker inspect web1`. ``` shell $ mkdir -p /srv/docker/lon-dev-web $ docker run -d -name="web1" \ -p 127.0.0.1:80:80 \ -v /srv/docker/lon-dev-web:/srv/www \ -e USER="super" \ -e PASS="Whatz03v3r" \ internavenue/nginx ``` Alternately, you can run the following if you have *GNU Make* installed... ``` shell $ make run ``` You can also specify a custom port to bind to on the host, a custom web root directory, and the superuser username and password on the host like so: ``` shell $ sudo mkdir -p /srv/docker/lon-dev-web $ make run PORT=127.0.0.1:8080 \ DATA_DIR=/my/spec/data/dir \ USER=super \ PASS=Whatz03v3r ```
评论
    相关推荐