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
|
||||
RUN python3 setup.py install
|
||||
|
||||
EXPOSE 9000
|
||||
EXPOSE 8000
|
||||
|
||||
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
|
||||
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
|
||||
$ docker run -v /path/to/drydock/repo/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)
|
||||
$ sudo docker build . -t drydock
|
||||
$ sudo docker run -d -v $(pwd)/examples:/etc/drydock -P --name='drydock' drydock
|
||||
$ DDPORT=$(sudo docker port drydock 8000/tcp | awk -F ':' '{ print $NF }')
|
||||
$ curl -v http://localhost:${DDPORT}/api/v1.0/designs
|
||||
|
||||
## Modular service
|
||||
|
@ -1,10 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
CMD="drydock"
|
||||
PORT="8000"
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" = 'server' ]; then
|
||||
exec uwsgi --http :${PORT} -w drydock_provisioner.drydock --callable drydock --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"
|
||||
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…
x
Reference in New Issue
Block a user