From c1e4ffd665477aec792e69fcea05b078e4576281 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:09:44 -0400 Subject: [PATCH 1/5] Added ssh default for building docker image --- docker-compose.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8dd5162..ed72c2b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,9 @@ version: '3.8' # Use a recent version services: # Your Rust Application Service auth_api: - build: . # Tells docker-compose to build the Dockerfile in the current directory + build: # Tells docker-compose to build the Dockerfile in the current directory + context: . + ssh: ["default"] # Uses host's SSH agent container_name: icarus_auth # Optional: Give the container a specific name ports: # Map host port 8000 to container port 3000 (adjust as needed) @@ -40,4 +42,4 @@ services: # Define the named volume for data persistence volumes: postgres_data: - driver: local # Use the default local driver \ No newline at end of file + driver: local # Use the default local driver -- 2.43.0 From e09aa230aaa3c56c1cb78fb9bc0ba5e077567493 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:11:00 -0400 Subject: [PATCH 2/5] Added readme --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 -- 2.43.0 From be1100b3fef728f88a60498e2cd121cf9d78627f Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:12:39 -0400 Subject: [PATCH 3/5] removing extra readme file --- READEME.md | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 READEME.md diff --git a/READEME.md b/READEME.md deleted file mode 100644 index 5ba9a07..0000000 --- a/READEME.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# Getting started -Take notice of the .env.sample file and create copies without the .sample in the name. - -`.env.sample` -> `.env` - -Ensure that all variables are populated and is correct. - -## Docker - -Build the images -``` -docker compose build --ssh default auth_api -``` - -Bring it up -``` -docker compose up -d --force-recreate auth_api -``` \ No newline at end of file -- 2.43.0 From 8a806d76e018415aac7f414342d70d5ec07081c0 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:19:09 -0400 Subject: [PATCH 4/5] Updated readme --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index e69de29..b56d1e1 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,26 @@ + + +# Getting Started +Copy the `.env.sample` file to `.env` and ensure that the variables are populated. This project +can be used with regular hosting or with docker. For the sake of getting up to speed quickly, +Docker will be covered. Make sure docker is running and your ssh identity has been loaded. + +Build image +``` +docker compose build +``` + +Start images +``` +docker compose up -d --force-recreate +``` + +Bring it down +``` +docker compose down -v +``` + +Pruning +``` +docker system prune -a +``` -- 2.43.0 From f078ca11cacab348058c52901cfde48e9fc6d76c Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:19:24 -0400 Subject: [PATCH 5/5] Removed docker text file --- docker_run.txt | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 docker_run.txt diff --git a/docker_run.txt b/docker_run.txt deleted file mode 100644 index 7f319e4..0000000 --- a/docker_run.txt +++ /dev/null @@ -1,13 +0,0 @@ - -# Docker stuff -#Build app -docker compose build --ssh default auth_api - -# Rebuild and bring up -docker compose up -d --force-recreate auth_api - -# Bring it down -docker compose down -v - -# Pruning -docker system prune -a \ No newline at end of file -- 2.43.0