Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Register
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Register
Commits
bd0791b0
Commit
bd0791b0
authored
3 months ago
by
Marc Burnie [AWS]
Browse files
Options
Downloads
Patches
Plain Diff
AWS: Building multi-arch Alpine images
parent
4d0f8d67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!514
AWS: Building multi-arch Alpine images
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
provider/register-aws/build-aws/Dockerfile
+9
-6
9 additions, 6 deletions
provider/register-aws/build-aws/Dockerfile
provider/register-aws/build-aws/buildspec.yaml
+4
-6
4 additions, 6 deletions
provider/register-aws/build-aws/buildspec.yaml
with
13 additions
and
12 deletions
provider/register-aws/build-aws/Dockerfile
+
9
−
6
View file @
bd0791b0
...
@@ -13,18 +13,21 @@
...
@@ -13,18 +13,21 @@
# limitations under the License.
# limitations under the License.
# https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html
# https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html
FROM
public.ecr
.aws/amazoncorretto
/amazoncorretto:17
FROM
registry.repo.osdu
.aws/amazoncorretto
:17-alpine
RUN
yum update
-y
&&
yum
install
-y
shadow-utils
\
RUN
apk update
&&
\
&&
groupadd
-g
10001
-r
appgroup
\
apk add
--no-cache
\
&&
useradd
-M
-g
10001
-r
-u
10001 appuser
bash
\
curl
\
shadow
\
&&
\
/usr/sbin/groupadd
-g
10001
-r
appgroup
&&
\
/usr/sbin/useradd
-M
-g
10001
-r
-u
10001 appuser
ARG
JAR_FILE=provider/register-aws/target/*spring-boot.jar
ARG
JAR_FILE=provider/register-aws/target/*spring-boot.jar
# Harcoding this value since Register-core requires this variable. AWS does not use it. Might change in future
# Harcoding this value since Register-core requires this variable. AWS does not use it. Might change in future
ENV
ENVIRONMENT=DEV
ENV
ENVIRONMENT=DEV
WORKDIR
/
WORKDIR
/
COPY
${JAR_FILE} app.jar
COPY
${JAR_FILE} app.jar
COPY
/provider/register-aws/build-aws/entrypoint.sh /entrypoint.sh
COPY
/provider/register-aws/build-aws/entrypoint.sh /entrypoint.sh
...
...
This diff is collapsed.
Click to expand it.
provider/register-aws/build-aws/buildspec.yaml
+
4
−
6
View file @
bd0791b0
...
@@ -77,12 +77,10 @@ phases:
...
@@ -77,12 +77,10 @@ phases:
-
echo "--Copying Helm Charts to ${OUTPUT_DIR:-dist}--"
-
echo "--Copying Helm Charts to ${OUTPUT_DIR:-dist}--"
-
rsync -r devops/aws/* "${OUTPUT_DIR:-dist}"
-
rsync -r devops/aws/* "${OUTPUT_DIR:-dist}"
-
echo "Building docker image..."
-
echo "Build and push docker image..."
-
docker build -f provider/register-aws/build-aws/Dockerfile -t ${ECR_IMAGE} .
-
docker buildx create --driver docker-container --use
-
docker tag ${ECR_IMAGE} ${ECR_IMAGE_BRANCH_LATEST}
-
docker buildx inspect --bootstrap
-
echo "Pushing docker image..."
-
docker buildx build --platform linux/arm64/v8,linux/amd64 --pull --push -f provider/register-aws/build-aws/Dockerfile -t ${ECR_IMAGE} -t ${ECR_IMAGE_BRANCH_LATEST} .
-
docker push ${ECR_IMAGE}
-
docker push ${ECR_IMAGE_BRANCH_LATEST}
-
echo "Generate build-info.json"
-
echo "Generate build-info.json"
-
|
-
|
...
...
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