UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
Galvanize
galvanize
python-code-evaluator
Commits
43d78d8a
Commit
43d78d8a
authored
May 20, 2021
by
Michael Uranaka
Browse files
Making redis port a env varible. Minor updates
parent
a43ab688
Pipeline
#269982
passed with stages
in 4 minutes and 47 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
Dockerfile
Dockerfile
+4
-1
README.md
README.md
+1
-0
hardening_manifest.yaml
hardening_manifest.yaml
+4
-4
scripts/get-job.sh
scripts/get-job.sh
+1
-1
No files found.
Dockerfile
View file @
43d78d8a
...
...
@@ -6,7 +6,9 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
USER
0
# Make sure we are up to date.
RUN
dnf update
-y
&&
dnf clean all
RUN
dnf update
-y
\
&&
dnf clean all
\
&&
rm
-rf
/var/cache/dnf
# Copy in the project files.
WORKDIR
/app
...
...
@@ -19,6 +21,7 @@ RUN tar xzf redis-cli.tar.gz && rm redis-cli.tar.gz \
# Set permissions and ownership.
RUN
chown
-R
1001 /app
\
&&
chown
-R
1001 /usr/src
\
&&
chmod
0555 /app/get-job.sh
# Become the python user.
...
...
README.md
View file @
43d78d8a
...
...
@@ -25,6 +25,7 @@ code snippets that were submitted from students through the LEARN application.
### Required Environment Variables:
-
```REDIS_HOST```
- The redis server host address.
-
```REDIS_PORT```
- The redis port number.
## Local Development Setup
...
...
hardening_manifest.yaml
View file @
43d78d8a
...
...
@@ -8,7 +8,7 @@ name: "galvanize/galvanize/python-code-evaluator"
# The most specific version should be the first tag and will be shown
# on ironbank.dsop.io
tags
:
-
"
0.1.
1
"
-
"
0.1.
2
"
-
"
latest"
# Build args passed to Dockerfile ARGs
...
...
@@ -23,7 +23,7 @@ labels:
org.opencontainers.image.licenses
:
"
proprietary"
org.opencontainers.image.url
:
"
https://www.galvanize.com"
org.opencontainers.image.vendor
:
"
Galvanize"
org.opencontainers.image.version
:
"
0.1.
1
"
org.opencontainers.image.version
:
"
0.1.
2
"
mil.dso.ironbank.image.keywords
:
"
lms,learn,galvanize,online,classes,remote,learning"
mil.dso.ironbank.image.type
:
"
commercial"
mil.dso.ironbank.product.name
:
"
Learn"
...
...
@@ -34,11 +34,11 @@ resources:
type
:
s3
id
:
galvanize
region
:
us-gov-west-1
url
:
s3://learn-dependencies/python-evaluator/redis-cli-0.1.
1
.tar.gz
url
:
s3://learn-dependencies/python-evaluator/redis-cli-0.1.
2
.tar.gz
filename
:
redis-cli.tar.gz
validation
:
type
:
sha256
value
:
18e1ce8f3a0ecb96746b4540a6067b440f8f3e93b680392f8b13cee021e2cdc3
value
:
320524af8050b7e7812842e81a89a73d9bd4b2243e63b33ef4a7c91f2b69682d
# List of project maintainers
maintainers
:
...
...
scripts/get-job.sh
View file @
43d78d8a
...
...
@@ -12,7 +12,7 @@ while true; do
# apply the redis commands to block-pop
# grep out the actual job payload, and
# write it to the json-object.json file
redis-cli
-h
$REDIS_HOST
< redis-cmds |
\
redis-cli
-h
$REDIS_HOST
-p
$REDIS_PORT
< redis-cmds |
\
grep
'ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper'
>
\
json-object.json
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment