From 52d1610ac6bad7c17b1c4384230df639f8dace8d Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 13 Jan 2024 22:50:37 +0000 Subject: [PATCH] fix: testing dockerfile change name --- create_release.sh | 6 +++--- docker-compose.yml | 14 +++++++------- postgres.Dockerfile | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 postgres.Dockerfile diff --git a/create_release.sh b/create_release.sh index f3c90c2..13e8a24 100755 --- a/create_release.sh +++ b/create_release.sh @@ -215,19 +215,19 @@ check_typos() { } # Make sure the unused lint isn't used -check_allow_unsued() { +check_allow_unused() { matches_any=$(find . -type d \( -name .git -o -name target \) -prune -o -type f -exec grep -lE '^#!\[allow\(unused\)\]$' {} +) matches_cargo=$(grep "^unused = \"allow\"" ./Cargo.toml) if [ -n "$matches_any" ]; then error_close "\"#[allow(unused)]\" in ${matches_any}" elif [ -n "$matches_cargo" ]; then - error_close "\"unsed = \"allow\"\" in Cargo.toml" + error_close "\"unused = \"allow\"\" in Cargo.toml" fi } # Full flow to create a new release release_flow() { - check_allow_unsued + check_allow_unused check_typos check_git diff --git a/docker-compose.yml b/docker-compose.yml index b2547f0..7553ceb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,16 +3,18 @@ networks: oxker-example-net: name: oxker-examaple-net services: - postgres: - image: postgres:alpine3.19 - container_name: postgres + postgres_but_with_a_longer_container_name: + container_name: postgres_but_with_a_longer_container_name + build: + dockerfile: ./postgres.Dockerfile + context: "." environment: - - POSTGRES_PASSWORD=never_use_this_password_in_production + - POSTGRES_PASSWORD=never_use_this_password_in_production ipc: private restart: always shm_size: 256MB networks: - - oxker-example-net + - oxker-example-net deploy: resources: limits: @@ -39,5 +41,3 @@ services: resources: limits: memory: 512M - - diff --git a/postgres.Dockerfile b/postgres.Dockerfile new file mode 100644 index 0000000..7c27a09 --- /dev/null +++ b/postgres.Dockerfile @@ -0,0 +1 @@ +FROM postgres:16-alpine3.19 \ No newline at end of file