Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
The Social Network
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marc Feger
The Social Network
Commits
4706fe77
Commit
4706fe77
authored
3 years ago
by
Andreas Burbach
Browse files
Options
Downloads
Patches
Plain Diff
update docker
parent
1b9b7f31
Branches
Branches containing commit
No related tags found
1 merge request
!1
Merge feedingChickenWithChicken into main
Pipeline
#75031
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+3
-1
3 additions, 1 deletion
docker-compose.yml
the_social_network/Dockerfile
+11
-0
11 additions, 0 deletions
the_social_network/Dockerfile
the_social_network/pyproject.toml
+1
-1
1 addition, 1 deletion
the_social_network/pyproject.toml
with
15 additions
and
2 deletions
docker-compose.yml
+
3
−
1
View file @
4706fe77
...
@@ -5,11 +5,13 @@ services:
...
@@ -5,11 +5,13 @@ services:
container_name
:
the_social_network
container_name
:
the_social_network
build
:
./the_social_network
build
:
./the_social_network
restart
:
always
restart
:
always
command
:
sh -c "p
ipenv
run python manage.py collectstatic --noinput && p
ipenv run uwsgi --socket=:9000 --module=the_social_network.wsgi:application --py-autoreload=1
"
command
:
sh -c "p
oetry
run python manage.py collectstatic --noinput && p
oetry run python manage.py runserver 0.0.0.0:9000
"
volumes
:
volumes
:
-
./the_social_network:/code
-
./the_social_network:/code
networks
:
networks
:
-
webnet
-
webnet
ports
:
-
"
9000:9000"
networks
:
networks
:
webnet
:
webnet
:
This diff is collapsed.
Click to expand it.
the_social_network/Dockerfile
0 → 100644
+
11
−
0
View file @
4706fe77
FROM
python:3.9-alpine
ENV
PYTHONUNBUFFERED 1
RUN
apk update
&&
\
apk add
--virtual
build-deps curl gcc python3-dev musl-dev openssl-dev libffi-dev build-base linux-headers
&&
\
apk add jpeg-dev zlib-dev libjpeg pcre-dev
WORKDIR
/code
COPY
pyproject.toml ./
RUN
pip
install
poetry
RUN
poetry
install
COPY
. ./
RUN
apk del build-deps
This diff is collapsed.
Click to expand it.
the_social_network/pyproject.toml
+
1
−
1
View file @
4706fe77
...
@@ -10,7 +10,7 @@ homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network"
...
@@ -10,7 +10,7 @@ homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network"
[tool.poetry.dependencies]
[tool.poetry.dependencies]
python
=
"^3.
8
"
python
=
"^3.
9
"
Django
=
"^3.2.9"
Django
=
"^3.2.9"
djangorestframework
=
"^3.12.4"
djangorestframework
=
"^3.12.4"
Pillow
=
"^8.4.0"
Pillow
=
"^8.4.0"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment