Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
AURA
engine-api
Commits
04f4a8a0
Commit
04f4a8a0
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
chore: update to aura UID:GID, see
aura#144
parent
8dfcbfb2
No related branches found
No related tags found
No related merge requests found
Pipeline
#2886
passed
2 years ago
Stage: test
Stage: bundle
Stage: deploy
Stage: release
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+9
-6
9 additions, 6 deletions
Dockerfile
Makefile
+3
-1
3 additions, 1 deletion
Makefile
with
12 additions
and
7 deletions
Dockerfile
+
9
−
6
View file @
04f4a8a0
FROM
python:3.10-slim
as
base
LABEL
maintainer="David Trattnig <david@subsquare.at>"
ENV
UID=1000
ENV
GID=1000
ENV
USER=app
ENV
AURA_UID=2872
ENV
AURA_GID=2872
# Configure Poetry
ENV
POETRY_VERSION=1.3.2
...
...
@@ -36,9 +36,12 @@ COPY ./config/sample.engine-api.docker.ini /srv/config/engine-api.ini
RUN
poetry
install
--no-interaction
--no-ansi
# Update Permissions
RUN
set
-e
\
&&
adduser
--home
/srv
--no-create-home
--system
--uid
${
UID
}
--group
${
USER
}
\
&&
chown
-R
${
UID
}
:
${
GID
}
/srv /etc/aura
RUN
groupadd
--gid
${
AURA_GID
}
aura
&&
\
useradd
--gid
${
AURA_GID
}
--no-user-group
--uid
${
AURA_UID
}
--home-dir
/srv
--no-create-home
aura
&&
\
chown
-R
${
AURA_UID
}
:
${
AURA_GID
}
/srv /etc/aura
USER
aura
# Start Service
EXPOSE
8008
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
3
−
1
View file @
04f4a8a0
...
...
@@ -20,6 +20,8 @@ AURA_ENGINE_API_HOST ?= 127.0.0.1
AURA_ENGINE_API_PORT
?=
8008
AURA_ENGINE_API_CONFIG
:=
${
CURDIR
}
/config/engine-api.docker.ini
AURA_LOGS
:=
${
CURDIR
}
/logs
AURA_UID
:=
2872
AURA_GID
:=
2872
DOCKER_RUN
=
@docker run
\
--name
$(
APP_NAME
)
\
...
...
@@ -28,7 +30,7 @@ DOCKER_RUN = @docker run \
--env-file
docker.env
\
-v
"
$(
AURA_ENGINE_API_CONFIG
)
"
:
"/etc/aura/engine-api.ini"
:ro
\
-v
"
$(
AURA_LOGS
)
"
:
"/srv/logs"
\
-u
$(
UID
)
:
$(
GID
)
\
-u
$(
AURA_
UID
)
:
$(
AURA_
GID
)
\
$(
DOCKER_ENTRY_POINT
)
\
autoradio/
$(
APP_NAME
)
...
...
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