Fix Dockerfile

Fix build issues in Dockerfile and
update dev environment instructions to use
Docker instead of virtualenv
This commit is contained in:
Scott Hussey 2017-07-13 21:04:51 -05:00
parent a11d55327e
commit eca07e47e4
3 changed files with 8 additions and 8 deletions

View File

@ -11,9 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM drydock_base:0.1 FROM ubuntu:16.04
ARG VERSION
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ENV container docker ENV container docker

View File

@ -3,10 +3,10 @@ A python REST orchestrator to translate a YAML host topology to a provisioned se
To run: To run:
$ virtualenv -p python3 /var/tmp/drydock $ docker build . -t drydock
$ . /var/tmp/drydock/bin/activate $ docker run -v /path/to/drydock/repo/examples:/etc/drydock -P --name='drydock' drydock
$ python setup.py install $ DDPORT=$(docker ps -f name=drydock | grep -oE '0.0.0.0:[0-9]+' | cut -d':' -f 2)
$ uwsgi --http :9000 -w drydock_provisioner.drydock --callable drydock --enable-threads -L $ curl -v http://localhost:${DDPORT}/api/v1.0/designs
## Modular service ## Modular service

View File

@ -0,0 +1,2 @@
#!/bin/bash
echo 'Test'