Skip to content

Commit 754cfe4

Browse files
author
Ekaterina Volkova
committed
1 parent 35134bb commit 754cfe4

File tree

6 files changed

+63
-429
lines changed

6 files changed

+63
-429
lines changed

Dockerfile

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
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
202

213
ADD . /docker-registry
22-
ADD ./config/boto.cfg /etc/boto.cfg
234

24-
RUN cp --no-clobber /docker-registry/config/config_sample.yml /docker-registry/config/config.yml
5+
RUN /docker-registry/build.sh
256

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.
2610
EXPOSE 5000
2711

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+
2820
CMD cd /docker-registry && ./setup-configs.sh && exec ./run.sh

0 commit comments

Comments
 (0)