Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StorageLeaf
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ProjectLeaf
StorageLeaf
Commits
bef26daa
Commit
bef26daa
authored
2 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
switched to poetry
parent
2a333e5d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+12
-8
12 additions, 8 deletions
Dockerfile
Pipfile
+0
-21
0 additions, 21 deletions
Pipfile
poetry.lock
+733
-0
733 additions, 0 deletions
poetry.lock
pyproject.toml
+24
-0
24 additions, 0 deletions
pyproject.toml
with
769 additions
and
29 deletions
Dockerfile
+
12
−
8
View file @
bef26daa
FROM
python:3.9-
alpin
e
FROM
python:3.9-
slim-bullsey
e
RUN
apk add
--no-cache
openssl-dev libffi-dev gcc musl-dev make
RUN
apt-get update
&&
apt-get upgrade
-y
&&
\
apt-get
install
-y
curl
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
pip
install
pipenv
RUN
curl
-sSL
https://install.python-poetry.org | python -
COPY
src /opt/StorageLeaf/src
COPY
Pipfile /opt/StorageLeaf
COPY
. /opt/StorageLeaf
RUN
rm
/opt/StorageLeaf/settings.json
WORKDIR
/opt/StorageLeaf
WORKDIR
/opt/StorageLeaf
RUN
pipenv
install
RUN
/root/.local/bin/poetry
install
--no-root
&&
\
RUN
ln
-s
$(
pipenv
--venv
)
/opt/StorageLeaf/mypipenv
/root/.local/bin/poetry cache clear
--all
.
RUN
ln
-s
$(
$HOME
/.local/share/pypoetry/venv/bin/poetry
env
info
-p
)
/opt/StorageLeaf/myvenv
WORKDIR
/opt/StorageLeaf/src
WORKDIR
/opt/StorageLeaf/src
CMD
[ "/opt/StorageLeaf/my
pip
env/bin/python", "/opt/StorageLeaf/src/StorageLeaf.py"
]
CMD
[ "/opt/StorageLeaf/my
v
env/bin/python", "/opt/StorageLeaf/src/StorageLeaf.py"]
This diff is collapsed.
Click to expand it.
Pipfile
deleted
100644 → 0
+
0
−
21
View file @
2a333e5d
[[source]]
url
=
"https://pypi.python.org/simple"
verify_ssl
=
true
name
=
"pypi"
[[source]]
url
=
"https://pypi.thecodelabs.de"
verify_ssl
=
true
name
=
"TheCodeLabs"
[requires]
python_version
=
"3"
[packages]
TheCodeLabs-BaseUtils
=
"*"
fastapi
=
"=
=
0.92
.
0
"
uvicorn = "
=
=
0.20
.
0
"
sqlalchemy = "
=
=
2.0
.
4
"
apscheduler = "
=
=
3.10
.
0
"
[dev-packages]
This diff is collapsed.
Click to expand it.
poetry.lock
0 → 100644
+
733
−
0
View file @
bef26daa
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
24
−
0
View file @
bef26daa
[tool.poetry]
name
=
"StorageLeaf"
version
=
"1.1.0"
description
=
"Accepts sensor data and saves them into a database. The saved data can be accessed via api."
authors
=
[
"TheCodeLabsDevs"
]
[[tool.poetry.source]]
name
=
"TheCodeLabs"
url
=
"https://pypi.thecodelabs.de"
secondary
=
true
[tool.poetry.dependencies]
python
=
"^3.9"
thecodelabs-baseutils
=
"*"
fastapi
=
"0.92.0"
uvicorn
=
"0.20.0"
sqlalchemy
=
"2.0.4"
apscheduler
=
"3.10.0"
[tool.poetry.dev-dependencies]
[build-system]
requires
=
["poetry-core>
=
1.0
.
0
"]
build-backend
=
"poetry.core.masonry.api"
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