Now with build context
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
55214df674
commit
308d566942
@ -6,7 +6,7 @@ steps:
|
|||||||
- name: build cpp-ubuntu
|
- name: build cpp-ubuntu
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
- docker build -t erki/cpp-ubuntu:latest - < cpp-ubuntu.Dockerfile
|
- docker build -t erki/cpp-ubuntu:latest -f cpp-ubuntu.Dockerfile .
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -14,7 +14,7 @@ steps:
|
|||||||
- name: build jenkins-ubuntu
|
- name: build jenkins-ubuntu
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
- docker build -t erki/jenkins-ubuntu:latest - < jenkins-ubuntu.Dockerfile
|
- docker build -t erki/jenkins-ubuntu:latest -f jenkins-ubuntu.Dockerfile .
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|||||||
@ -8,7 +8,7 @@ RUN mkdir -p /var/run/sshd
|
|||||||
RUN adduser --quiet jenkins
|
RUN adduser --quiet jenkins
|
||||||
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||||
|
|
||||||
COPY jenkins-ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
|
COPY ./jenkins-ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
|
||||||
|
|
||||||
RUN chown -R jenkins:jenkins /home/jenkins/.ssh/
|
RUN chown -R jenkins:jenkins /home/jenkins/.ssh/
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user