File tree 6 files changed +63
-429
lines changed 6 files changed +63
-429
lines changed Original file line number Diff line number Diff line change 1
- # VERSION 0.1
2
- # DOCKER-VERSION 0.7.3
3
- # AUTHOR: Sam Alba <[email protected] >
4
- # DESCRIPTION: Image with docker-registry project and dependecies
5
- # TO_BUILD: docker build -rm -t registry .
6
- # TO_RUN: docker run -p 5000:5000 registry
7
-
8
- FROM ubuntu:13.04
9
-
10
- RUN apt-get update; \
11
- apt-get install -y git-core build-essential python-dev \
12
- libevent1-dev python-openssl liblzma-dev wget; \
13
- rm /var/lib/apt/lists/*_*
14
- RUN cd /tmp; wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
15
- RUN cd /tmp; python ez_setup.py; easy_install pip; \
16
- rm ez_setup.py
17
-
18
- ADD requirements.txt /docker-registry/
19
- RUN cd /docker-registry && pip install -r requirements.txt
1
+ FROM debian:jessie
20
2
21
3
ADD . /docker-registry
22
- ADD ./config/boto.cfg /etc/boto.cfg
23
4
24
- RUN cp --no-clobber /docker-registry/config/config_sample.yml /docker-registry/config/config.yml
5
+ RUN /docker-registry/build.sh
25
6
7
+ # This is the default port that docker-registry is listening on.
8
+ # Needs to be set into 5000 or the value of REGISTRY_PORT environment variable
9
+ # if the latter one is set.
26
10
EXPOSE 5000
27
11
12
+ # Credentials. Use --volumes-from gcloud-config (google/cloud-sdk).
13
+ VOLUME ["/.config" ]
14
+
15
+ # These should be set if credentials are obtained with google/cloud-sdk.
16
+ ENV OAUTH2_CLIENT_ID 32555940559.apps.googleusercontent.com
17
+ ENV OAUTH2_CLIENT_SECRET ZmssLNjJy2998hD4CTg2ejr2
18
+ ENV USER_AGENT "Cloud SDK Command Line Tool"
19
+
28
20
CMD cd /docker-registry && ./setup-configs.sh && exec ./run.sh
You can’t perform that action at this time.
0 commit comments