File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,27 @@ RUN useradd -s /bin/bash registry
1414
1515# add the docker registry source from github
1616RUN git clone https://github.com/deis/docker-registry /docker-registry
17+ RUN chown -R registry:registry /docker-registry
1718
1819# lock the registry version to a tag
1920RUN cd /docker-registry && git checkout repository-import
2021
2122# install boto configuration
2223RUN cp /docker-registry/config/boto.cfg /etc/boto.cfg
23- RUN cd /docker-registry && pip install -r requirements.txt
24+ RUN cd /docker-registry && pip install -r requirements/main.txt
25+
26+ # Install core
27+ RUN pip install /docker-registry/depends/docker-registry-core
28+
29+ # Install registry
30+ RUN pip install file:///docker-registry#egg=docker-registry[bugsnag]
31+
32+ ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
33+ ENV SETTINGS_FLAVOR dev
2434
2535# create data volume
2636RUN mkdir -p /data/repositories && chown -R registry:registry /data
37+ ENV STORAGE_PATH /data
2738VOLUME /data
2839
2940# add the current build context to /app
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ test -d /data && chown registry:registry /data
4646
4747# spawn the service in the background
4848cd /docker-registry
49- ./setup-configs.sh
50- sudo -E -u registry ./run.sh &
49+ sudo -E -u registry docker-registry &
5150SERVICE_PID=$!
5251
5352# smart shutdown on SIGINT and SIGTERM
You can’t perform that action at this time.
0 commit comments