Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
otottkovacstibor committed Jan 13, 2019
1 parent 33d4b85 commit 8ef81fc
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM jenkins/jenkins

USER root

RUN curl -sSL https://get.docker.com/ | sh

RUN usermod -a -G staff,docker jenkins

RUN curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose

USER jenkins
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# oktibor-jenkins
Jenkins docker-in-docker

## Usage

#### Build image
```
docker-compose build
```

#### Start container
```
docker-compose up -d
```
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3.5'

services:
jenkins:
build: .
image: docker.oktibor.com/jenkins
restart: always
container_name: jenkins
environment:
- JAVA_OPTS=-Duser.timezone=Europe/Budapest
- VIRTUAL_HOST=jenkins.oktibor.com
- VIRTUAL_PORT=8080
- JENKINS_HOME=/disk/docker/jenkins
volumes:
- /disk:/disk:z
- /disk/docker/jenkins/.ssh:/root/.ssh
- /disk/docker/jenkins/.gitconfig:/root/.gitconfig
- /var/run/docker.sock:/var/run/docker.sock
networks:
- nginx

networks:
nginx:
external: true

0 comments on commit 8ef81fc

Please sign in to comment.