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
java-code-evaluator
Commits
af7c251c
Commit
af7c251c
authored
Apr 20, 2021
by
Michael Uranaka
Browse files
updating to gradle 6.8.3
parent
39fbe2e2
Pipeline
#227414
passed with stages
in 13 minutes and 5 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
Dockerfile
Dockerfile
+1
-1
hardening_manifest.yaml
hardening_manifest.yaml
+3
-3
scripts/repackage.sh
scripts/repackage.sh
+8
-9
No files found.
Dockerfile
View file @
af7c251c
ARG
BASE_REGISTRY=registry1.dso.mil
ARG
BASE_REGISTRY=registry1.dso.mil
ARG
BASE_IMAGE=opensource/gradle/gradle-jre11
ARG
BASE_IMAGE=opensource/gradle/gradle-jre11
ARG
BASE_TAG=6.
7.1
ARG
BASE_TAG=6.
8.3
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
USER
0
USER
0
...
...
hardening_manifest.yaml
View file @
af7c251c
...
@@ -14,7 +14,7 @@ tags:
...
@@ -14,7 +14,7 @@ tags:
# Build args passed to Dockerfile ARGs
# Build args passed to Dockerfile ARGs
args
:
args
:
BASE_IMAGE
:
"
opensource/gradle/gradle-jre11"
BASE_IMAGE
:
"
opensource/gradle/gradle-jre11"
BASE_TAG
:
"
6.
7.1
"
BASE_TAG
:
"
6.
8.3
"
# Docker image labels
# Docker image labels
labels
:
labels
:
...
@@ -38,7 +38,7 @@ resources:
...
@@ -38,7 +38,7 @@ resources:
filename
:
redis-cli.tar.gz
filename
:
redis-cli.tar.gz
validation
:
validation
:
type
:
sha256
type
:
sha256
value
:
975e37c4165969c4cd612ddd81a69
50
e
87
2f2d9a7a355376a05be4ad901e62f
e
value
:
656bf2fc3f4e63bb4ee96744a5
50
a
87
5b316e3f99da241a378a63db47b91e1e
e
-
auth
:
-
auth
:
type
:
s3
type
:
s3
id
:
galvanize
id
:
galvanize
...
@@ -47,7 +47,7 @@ resources:
...
@@ -47,7 +47,7 @@ resources:
filename
:
jars.tar.gz
filename
:
jars.tar.gz
validation
:
validation
:
type
:
sha256
type
:
sha256
value
:
8d9cbd2da25b8c1792e6fc900c9bd88c7e79005fdacf81fd0765933682b53c21
value
:
179f64dd1799517dbec988e8f54be50496bc7dc093dadcd43ce758d103644357
# List of project maintainers
# List of project maintainers
maintainers
:
maintainers
:
...
...
scripts/repackage.sh
View file @
af7c251c
#!/usr/bin/env bash
#!/usr/bin/env bash
# Image Params.
# Image Params.
BASE_REGISTRY
=
registry
.il2
.dso.mil
BASE_REGISTRY
=
registry
1
.dso.mil
BASE_IMAGE
=
platform-one/devops/pipeline-templates/ironbank
/gradle-jre11
BASE_IMAGE
=
ironbank/opensource/gradle
/gradle-jre11
BASE_TAG
=
6.
7.1
BASE_TAG
=
6.
8.3
# This is the profile name in your aws credentials file.
# This is the profile name in your aws credentials file.
DEPENDENCY_FOLDER
=
build_dependencies
DEPENDENCY_FOLDER
=
build_dependencies
AWS_PROFILE_NAME
=
revacomm
AWS_PROFILE_NAME
=
revacomm
AWS_BUCKET_NAME
=
learn-dependencies/java-evaluator
-dev
AWS_BUCKET_NAME
=
learn-dependencies/java-evaluator
AWS_REGION
=
us-gov-west-1
AWS_REGION
=
us-gov-west-1
echo
"Clearing dependency folder."
echo
"Clearing dependency folder."
...
@@ -27,21 +27,20 @@ CONTAINER_ID=$(docker run -d $IMAGE_ID)
...
@@ -27,21 +27,20 @@ CONTAINER_ID=$(docker run -d $IMAGE_ID)
echo
"Container ID:
${
CONTAINER_ID
}
"
echo
"Container ID:
${
CONTAINER_ID
}
"
echo
"Copying node modules and gems to the bundles directory."
echo
"Copying node modules and gems to the bundles directory."
TIMESTAMP
=
$(
TZ
=
'Pacific/Honolulu'
date
'+%Y%m%d%H%M'
)
docker
cp
$CONTAINER_ID
:/app/redis-cli.tar.gz
$DEPENDENCY_FOLDER
/redis-cli.tar.gz
docker
cp
$CONTAINER_ID
:/app/redis-cli.tar.gz
$DEPENDENCY_FOLDER
/redis-cli-
${
TIMESTAMP
}
.tar.gz
echo
"Stopping the docker container."
echo
"Stopping the docker container."
docker stop
"
$CONTAINER_ID
"
docker stop
"
$CONTAINER_ID
"
echo
"Uploading all the build dependencies to AWS."
echo
"Uploading all the build dependencies to AWS."
#
aws s3 sync $DEPENDENCY_FOLDER s3://$AWS_BUCKET_NAME --delete --profile $AWS_PROFILE_NAME --region $AWS_REGION
aws s3
sync
$DEPENDENCY_FOLDER
s3://
$AWS_BUCKET_NAME
--delete
--profile
$AWS_PROFILE_NAME
--region
$AWS_REGION
echo
"Checksums:"
echo
"Checksums:"
cd
$DEPENDENCY_FOLDER
cd
$DEPENDENCY_FOLDER
sha256sum
redis-cli
-
${
TIMESTAMP
}
.tar.gz
sha256sum
redis-cli.tar.gz
cd
..
cd
..
echo
"Removing dependency folder."
echo
"Removing dependency folder."
#
rm -rf $DEPENDENCY_FOLDER
rm
-rf
$DEPENDENCY_FOLDER
echo
"Done!"
echo
"Done!"
\ No newline at end of file
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