File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ RUN apt-get update \
89
89
RUN mkdir /static
90
90
91
91
# Create a non-root user, and make it the owner of the static dir created above
92
- RUN useradd --create-home opener \
93
- && chown -R opener /static
94
- USER opener
92
+ RUN useradd --create-home ov_user \
93
+ && chown -R ov_user /static
94
+ USER ov_user
95
95
96
96
# Copy subpackages from additional build-context 'packages'
97
97
# hadolint ignore=DL3022
98
- COPY --chown=opener --from=packages openverse-attribution /packages/python/openverse-attribution/
98
+ COPY --chown=ov_user --from=packages openverse-attribution /packages/python/openverse-attribution/
99
99
100
100
# Copy code into the final image
101
- COPY --chown=opener . /api/
101
+ COPY --chown=ov_user . /api/
102
102
103
103
# Collect static assets, these are used by the next stage, `nginx`
104
104
RUN env \
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ recreate:
98
98
99
99
# Launch a `pgcli` shell in the web container
100
100
pgcli db_user_pass = " deploy" db_name = " openledger": up
101
- env DC_USER=" opener " just ../ _pgcli web {{ db_user_pass }} {{ db_name }} db
101
+ env DC_USER=" ov_user " just ../ _pgcli web {{ db_user_pass }} {{ db_name }} db
102
102
103
103
#########################
104
104
# Django administration #
@@ -112,7 +112,7 @@ dj-local *args:
112
112
# Run Django administrative commands inside the Docker container
113
113
[positional-arguments ]
114
114
dj * args : wait-up
115
- env DC_USER=" {{ env_var_or_default (" DC_USER" , " opener " ) }} " just ../ exec web python manage.py " $@"
115
+ env DC_USER=" {{ env_var_or_default (" DC_USER" , " ov_user " ) }} " just ../ exec web python manage.py " $@"
116
116
117
117
# Get IPython shell inside the Docker container
118
118
ipython :
@@ -158,7 +158,7 @@ generate-docs doc="media-props" fail_on_diff="true":
158
158
# Run API tests inside the Docker container
159
159
[positional-arguments ]
160
160
test * args : wait-up
161
- env DC_USER=" opener " just ../ exec web pytest " $@"
161
+ env DC_USER=" ov_user " just ../ exec web pytest " $@"
162
162
163
163
# Run API tests locally
164
164
[positional-arguments ]
Original file line number Diff line number Diff line change 1
- # DC_USER=opener
1
+ # DC_USER=ov_user
2
2
3
3
# SKIP_DOTENV_FILES_RECREATION=true
Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ RUN apt-get update \
73
73
&& mkdir /worker_state
74
74
75
75
# Create a non-root user
76
- RUN useradd ingestionu \
77
- && chown ingestionu /worker_state
76
+ RUN useradd ov_user \
77
+ && chown ov_user /worker_state
78
78
79
- USER ingestionu
79
+ USER ov_user
80
80
81
81
# Copy code into the final image
82
- COPY --chown=ingestionu . /indexer_worker/
82
+ COPY --chown=ov_user . /indexer_worker/
83
83
84
84
# Expose Gunicorn server to indexer worker Falcon app
85
85
EXPOSE 8003
Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ RUN apt-get update \
72
72
&& mkdir /worker_state
73
73
74
74
# Create a non-root user
75
- RUN useradd ingestionu \
76
- && chown ingestionu /worker_state
75
+ RUN useradd ov_user \
76
+ && chown ov_user /worker_state
77
77
78
- USER ingestionu
78
+ USER ov_user
79
79
80
80
# Copy code into the final image
81
- COPY --chown=ingestionu . /ingestion_server/
81
+ COPY --chown=ov_user . /ingestion_server/
82
82
83
83
# Exposes
84
84
# - 8001: Gunicorn server for `ingestion_server` Falcon app
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set dotenv-load := true
5
5
# _ - Private recipes (https://github.com/casey/just#private-recipes)
6
6
7
7
IS_CI := env_var_or_default (" CI" , " " )
8
- DC_USER := env_var_or_default (" DC_USER" , " opener " )
8
+ DC_USER := env_var_or_default (" DC_USER" , " ov_user " )
9
9
10
10
# Show all available recipes, also recurses inside nested justfiles
11
11
@_ default :
You can’t perform that action at this time.
0 commit comments