generated from uw-ssec/project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add GH action job for publishing docker image to registry (#110)
* build: add GH action job for publishing docker image to registry * style: update action name * build: add linux/arm64 platform
- Loading branch information
1 parent
7098ea9
commit 4b48c0c
Showing
5 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM python:3.12-slim | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the Python script and requirements file into the container | ||
COPY ../../src/support_sphere_py /app/support_sphere_py | ||
|
||
|
||
# Below ENV values are overridden when running the via K8s Job else the above arg values are used. | ||
ENV DB_HOST=localhost | ||
ENV DB_PORT=5432 | ||
ENV DB_USERNAME=postgres | ||
ENV DB_PASSWORD=example123456 | ||
ENV DB_NAME=postgres | ||
ENV SUPABASE_KONG_HOST=supabase-supabase-kong | ||
ENV SUPABASE_KONG_PORT=8000 | ||
ENV JWT_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE | ||
|
||
|
||
# Install any necessary dependencies | ||
RUN pip install --no-cache-dir ./support_sphere_py | ||
|
||
# Command to run the Python script | ||
ENTRYPOINT ["sh", "-c", "python3 ./support_sphere_py/tests/resources/scripts/role_based_access_control.py && python3 ./support_sphere_py/tests/resources/scripts/update_db_sample_data.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters