Initial Dockerfile cleanup
This PS removes some unused files from the repo, and fixes the port definition in the dockerfile.
This commit is contained in:
parent
2c7874ad51
commit
83d588b829
@ -39,7 +39,7 @@ COPY . /tmp/drydock
|
|||||||
WORKDIR /tmp/drydock
|
WORKDIR /tmp/drydock
|
||||||
RUN python3 setup.py install
|
RUN python3 setup.py install
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 8000
|
||||||
|
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
|
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
FROM ubuntu:16.04
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
|
||||||
ENV container docker
|
|
||||||
|
|
||||||
RUN apt -qq update && \
|
|
||||||
apt -y install git netbase python3-minimal python3-setuptools python3-pip python3-dev ca-certificates gcc g++ make libffi-dev libssl-dev --no-install-recommends
|
|
||||||
|
|
||||||
# Need to configure proxies?
|
|
||||||
ADD requirements.txt /tmp/drydock/requirements.txt
|
|
||||||
|
|
||||||
WORKDIR /tmp/drydock
|
|
||||||
|
|
||||||
RUN pip3 install -r requirements.txt
|
|
@ -1,11 +1,11 @@
|
|||||||
# drydock_provisioner
|
# drydock_provisioner
|
||||||
A python REST orchestrator to translate a YAML host topology to a provisioned set of hosts and provide a set of cloud-init post-provisioning instructions.
|
A python REST orchestrator to translate a YAML host topology to a provisioned set of hosts and provide a set of cloud-init post-provisioning instructions.
|
||||||
|
|
||||||
To run:
|
To build and run, first move into the root directory of the repo and run:
|
||||||
|
|
||||||
$ docker build . -t drydock
|
$ sudo docker build . -t drydock
|
||||||
$ docker run -v /path/to/drydock/repo/examples:/etc/drydock -P --name='drydock' drydock
|
$ sudo docker run -d -v $(pwd)/examples:/etc/drydock -P --name='drydock' drydock
|
||||||
$ DDPORT=$(docker ps -f name=drydock | grep -oE '0.0.0.0:[0-9]+' | cut -d':' -f 2)
|
$ DDPORT=$(sudo docker port drydock 8000/tcp | awk -F ':' '{ print $NF }')
|
||||||
$ curl -v http://localhost:${DDPORT}/api/v1.0/designs
|
$ curl -v http://localhost:${DDPORT}/api/v1.0/designs
|
||||||
|
|
||||||
## Modular service
|
## Modular service
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
CMD="drydock"
|
CMD="drydock"
|
||||||
PORT="8000"
|
PORT="8000"
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ "$1" = 'server' ]; then
|
if [ "$1" = 'server' ]; then
|
||||||
exec uwsgi --http :${PORT} -w drydock_provisioner.drydock --callable drydock --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"
|
exec uwsgi --http :${PORT} -w drydock_provisioner.drydock --callable drydock --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"
|
||||||
fi
|
fi
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
PyYAML
|
|
||||||
pyghmi>=1.0.18
|
|
||||||
netaddr
|
|
||||||
falcon
|
|
||||||
oslo.versionedobjects>=1.23.0
|
|
||||||
requests
|
|
||||||
oauthlib
|
|
||||||
uwsgi>1.4
|
|
||||||
bson===0.4.7
|
|
||||||
oslo.config===4.6.0
|
|
Loading…
Reference in New Issue
Block a user