Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize Lab Server #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions AndroLabServer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:2.7

RUN useradd -m adrserver
WORKDIR /app
COPY src/ .
RUN apt update -y
RUN pip install --upgrade --no-cache-dir -r requirements.txt
RUN chown -R root:adrserver /app && \
chmod 750 /app /app/app.py
USER adrserver
CMD ["/usr/local/bin/python", "/app/app.py"]
EXPOSE 8888
33 changes: 0 additions & 33 deletions AndroLabServer/README.markdown

This file was deleted.

9 changes: 9 additions & 0 deletions AndroLabServer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AndroLab Back-end Server Readme
==========

This project is the python2 backend server for the Android InsecureBankv2 application which can be found at https://github.com/dineshshetty/Android-InsecureBankv2

## Installation
```bash
docker-compose up -d --build
```
Binary file removed AndroLabServer/app.pyc
Binary file not shown.
Binary file removed AndroLabServer/database.pyc
Binary file not shown.
8 changes: 8 additions & 0 deletions AndroLabServer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.6'
services:
web:
build: .
volumes:
- ./src:/app
ports:
- 8888:8888
Binary file removed AndroLabServer/models.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.