From 1f90522ef6b0204e8b3146e430d5150e1fc0ace7 Mon Sep 17 00:00:00 2001 From: Marco Massenzio Date: Thu, 2 Feb 2023 00:33:29 -0800 Subject: [PATCH] [hotfix] Fixed container build Removed unnecessary certs; Removed unnecessary fake AWS Creds. --- .github/workflows/release.yaml | 8 +------- docker/Dockerfile | 5 ----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 097435a..5767ff1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,14 +20,8 @@ jobs: steps: - uses: actions/checkout@v3 - # TODO: run this in a build container instead - - uses: arduino/setup-protoc@v1 - with: - version: '3.19' - - name: Install protoc-gen & build + - name: build run: | - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 make build - name: Create release tag diff --git a/docker/Dockerfile b/docker/Dockerfile index ce21ab0..a152f3f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,9 +9,6 @@ FROM ubuntu:22.04 RUN apt-get update && apt-get install ca-certificates -y RUN groupadd -r sm-bot && useradd -r -g sm-bot sm-bot -# Fake AWS configuration to connect to LocalStack docker. -ENV AWS_REGION=us-west-2 AWS_PROFILE=sm-bot - # Sensible defaults for the server, for reference # we list all the environment variables used by the # entrypoint script. @@ -25,8 +22,6 @@ WORKDIR /app RUN chown sm-bot:sm-bot /app USER sm-bot -ADD docker/aws-credentials /home/sm-bot/.aws/credentials -ADD certs/* /etc/statemachine/certs/ ADD build/bin/sm-server docker/entrypoint.sh ./ EXPOSE ${SERVER_PORT}