Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d9d3dc6a5 | ||
|
|
7e45ad4b1c | ||
|
|
37d9f93f71 |
@@ -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")
|
||||
|
||||
15
02-Phoenix/Hashr/Dockerfile
Normal file
15
02-Phoenix/Hashr/Dockerfile
Normal 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"]
|
||||
13
02-Phoenix/Worker/Dockerfile
Normal file
13
02-Phoenix/Worker/Dockerfile
Normal 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"]
|
||||
31
02-Phoenix/docker-compose.yml
Normal file
31
02-Phoenix/docker-compose.yml
Normal 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
|
||||
@@ -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
10
02-Phoenix/ui/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user