Gabe Mendoza c8a8ee928e
[CIVIS-11019] update to use ubuntu 22.04 fips enabled base image (#1)
* ubuntu fips

* Improve Dockerfile formatting and readability

- Use consistent 2-space indentation throughout
- Remove unnecessary comment blocks
- Better organize ARG declarations
- Improve line continuation formatting

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>

* remove extraneous file

* remove jenkins things

* remove extra files

* Add docker-compose configuration for FIPS-compliant code-server

- Add docker-compose.yml with build args for VERSION and CODE_RELEASE
- Add .env.example with configurable environment variables
- Update .gitignore and .dockerignore to exclude .env files
- Set CODE_RELEASE default to 4.102.1 for stable builds
- Configure image name: gabemendoza1/codecloud-code-server

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>

* simplify

* update image

* update image

* update image

* add netcat-openbsd

* netcat

* default ids 0

* remove extra files

* remove more workflows

* upgrade Python to 3.12

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>

* add buildspec

* update buildspec defs

* update buildspec defs

* ubuntu-fips-2

* fixed buildspec args

* FIPS_REPOSITORY_URI

* styling

* update placeholders

* latest

* latest

* put that thing back where it came from or so help me

* only need 1

* simplify Dockerfile

* no need ignores

* no need ignores

* simplify

* remove comment

* trigger codebuild

* jammy

---------

Co-authored-by: opencode <noreply@opencode.ai>
2025-07-25 13:11:33 -05:00

27 lines
914 B
YAML

version: 0.2
phases:
pre_build:
commands:
- export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
- export COMMIT_HASH_SHORT="$(echo $COMMIT_HASH | cut -c 1-7)"
- echo Logging in to Amazon ECR...
- aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
build:
commands:
- echo Building the Docker image...
- echo $FIPS_REPOSITORY_URI
- echo $COMMIT_HASH_SHORT
- echo $BRANCH_NAME
- >
docker build
--build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID}
--tag ${FIPS_REPOSITORY_URI}:${COMMIT_HASH_SHORT}
--tag ${FIPS_REPOSITORY_URI}:${BRANCH_NAME}
.
- docker image push --all-tags ${FIPS_REPOSITORY_URI}
post_build:
commands:
- echo Build completed!
- printf '{"tag":"%s"}' $COMMIT_HASH_SHORT > build.json