3 Commits

Author SHA1 Message Date
Tommy Parnell
0d9d3dc6a5 fix gen dockerfile 2017-01-20 11:07:27 -05:00
Tommy Parnell
7e45ad4b1c add new compose file 2017-01-20 11:07:27 -05:00
Tommy Parnell
37d9f93f71 results 2017-01-20 11:07:27 -05:00
6 changed files with 72 additions and 2 deletions

View File

@@ -18,7 +18,6 @@ def index():
@app.route("/<int:how_many_bytes>")
def gen(how_many_bytes):
time.sleep(0.1)
return Response(
os.read(urandom, how_many_bytes),
content_type="application/octet-stream")

View File

@@ -0,0 +1,15 @@
FROM microsoft/dotnet:1.1.0-sdk-projectjson
WORKDIR /app
ADD project.json project.json
RUN ["dotnet", "restore"]
ADD . .
RUN ["dotnet", "build", "-c", "Release"]
EXPOSE 80/tcp
CMD ["dotnet", "run", "-c", "Release", "--server.urls", "http://*:80"]

View File

@@ -0,0 +1,13 @@
FROM microsoft/dotnet:1.1.0-sdk-projectjson
WORKDIR /app
ADD project.json .
RUN ["dotnet", "restore"]
ADD . .
RUN ["dotnet", "build", "-c", "Release"]
ENTRYPOINT ["dotnet", "run", "-c", "Release"]

View File

@@ -0,0 +1,31 @@
version: "2"
services:
gen:
build: gen
ports:
- "8001:80"
hashr:
build: Hashr
ports:
- "8002:80"
ui:
build: ui
ports:
- "8000:80"
links:
- store
store:
build: store
ports:
- "8003:80"
worker:
build: Worker
links:
- gen
- hashr
- store

View File

@@ -2,10 +2,12 @@ FROM microsoft/dotnet:1.1.0-sdk-projectjson
WORKDIR /app
ADD . .
ADD project.json project.json
RUN ["dotnet", "restore"]
ADD . .
RUN ["dotnet", "build", "-c", "Release"]
EXPOSE 80/tcp

10
02-Phoenix/ui/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:boron-wheezy
RUN npm install -g bower
ADD package.json .
RUN npm install
ADD .bowerrc .
ADD bower.json .
RUN bower install --allow-root
ADD . .
EXPOSE 80
CMD ["npm", "run", "start"]