This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
77 lines (67 loc) · 1.57 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM jenkins/jenkins
USER root
RUN curl -sSL https://get.docker.com/ | sh
RUN usermod -a -G staff,docker jenkins
RUN apt install -y docker-compose
#
#RUN apt-get update && \
#apt-get install -qy \
# apt-utils \
# libyaml-dev \
# build-essential \
# python-dev \
# libxml2-dev \
# libxslt-dev \
# libffi-dev \
# libssl-dev \
# default-libmysqlclient-dev \
# python-mysqldb \
# python-pip \
# libjpeg-dev \
# zlib1g-dev \
# libblas-dev\
# liblapack-dev \
# libatlas-base-dev \
# apt-transport-https \
# ca-certificates \
# wget \
# software-properties-common \
# zip \
# unzip \
# gfortran && \
#rm -rf /var/lib/apt/lists/*
## Install docker
#RUN apt update
#RUN apt install -y apt-transport-https ca-certificates curl software-properties-common
#RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
#RUN apt-key fingerprint 0EBFCD88
##RUN echo "deb [arch=amd64] https://download.docker.com/linux/debian stable" | tee -a /etc/apt/sources.list.d/docker.list
#RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
#RUN apt update
#RUN apt install -y docker-ce
#RUN docker -v
#RUN ls /var/run/
#VOLUME /var/run/docker.sock /var/run/docker.sock
#RUN sudo service docker start
#RUN ls /var/run/
#RUN chmod 777 /var/run/docker.sock
#
#RUN docker run hello-world
#
## Install compose
#RUN apt install -y docker-compose
#
## add jenkins to docker group
#RUN usermod -aG docker jenkins
#
##set permission to docker
#
#
#
#
#
##RUN systemctl start docker
#RUN ls /var/run/
#RUN docker ps
#
USER jenkins