forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (52 loc) · 1.67 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
# This Dockerfile makes the "build box": the container used to build
# official releases of Teleport and its documentation
FROM debian:jessie
ARG UID
ARG GID
ENV DEBIAN_FRONTEND noninteractive
ADD locale.gen /etc/locale.gen
ADD profile /etc/profile
RUN (apt-get clean \
&& apt-key update \
&& apt-get -q -y update --fix-missing \
&& apt-get -q -y update \
&& apt-get install -q -y apt-utils \
&& apt-get install -q -y less \
&& apt-get install -q -y locales) ;
# Set locale to en_US.UTF-8
RUN (locale-gen \
&& locale-gen en_US.UTF-8 \
&& dpkg-reconfigure locales)
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -q -y \
libsqlite3-0 \
curl \
make \
git \
libc6-dev \
gcc \
tar \
gzip \
python \
python-pip \
libyaml-dev \
python-dev
RUN (pip install click==4.1 recommonmark mkdocs markdown-include ;\
apt-get -y autoclean; apt-get -y clean)
# Install Golang:
RUN (mkdir -p /opt && cd /opt && curl https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz | tar xz;\
mkdir -p /gopath/src/github.com/gravitational/teleport;\
chmod a+w /gopath;\
chmod a+w /var/lib)
RUN groupadd jenkins --gid=$GID -o && useradd jenkins --uid=$UID --gid=$GID --create-home --shell=/bin/sh
RUN (mkdir -p /var/lib/teleport && chown -R jenkins /var/lib/teleport)
ENV LANGUAGE="en_US.UTF-8" \
LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
LC_CTYPE="en_US.UTF-8" \
GOPATH="/gopath" \
GOROOT="/opt/go" \
PATH="$PATH:/opt/go/bin:/gopath/bin" \
GO15VENDOREXPERIMENT="1"
VOLUME ["/gopath/src/github.com/gravitational/teleport"]
EXPOSE 6600