Skip to content

Commit d344a8e

Browse files
committed
code moved to src folder. Dockerfile created.
1 parent 4786776 commit d344a8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+35
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ db
88
/env
99
/venv
1010
/django-jquery-file-upload/media
11+
/src/django-jquery-file-upload/media
1112
*.log
1213
*.pot
1314
*.pyc

README.md

Lines changed: 3 additions & 1 deletion

docker/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Dockerfile for building environment for django-file-upload demo
2+
# This is to test uploading of huge files
3+
4+
FROM python:3.4
5+
6+
RUN apt-get update \
7+
&& apt-get install -y --no-install-recommends \
8+
postgresql-client \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
LABEL author=gisat.cz
12+
LABEL description="QC tool environment, big file upload"
13+
14+
ENV PYTHONPATH=/usr/local/src/django-jquery-file-upload/src
15+
16+
# Upgrade the base system.
17+
RUN apt-get -y update \
18+
&& apt-get -y upgrade \
19+
&& apt-get install -y python3-pip \
20+
&& pip3 install --upgrade pip \
21+
&& apt-get install -y git
22+
23+
# Install application from GitHub
24+
RUN cd /usr/local/src \
25+
&& git clone https://github.com/jirikadlec2/django-jquery-file-upload \
26+
&& cd django-jquery-file-upload/src \
27+
&& pip3 install -r ./requirements.txt
28+
29+
# Run frontend application.
30+
EXPOSE 8000
31+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8008"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

manage.py renamed to src/manage.py

File renamed without changes.
File renamed without changes.

setup.py renamed to src/setup.py

File renamed without changes.

0 commit comments

Comments
 (0)