more updates
This commit is contained in:
parent
fce618589f
commit
633032ee32
|
|
@ -18,7 +18,7 @@ docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
This will:
|
This will:
|
||||||
- Pull the calculator image from Gitea registry
|
- Build the calculator image from the local Dockerfile
|
||||||
- Start the container
|
- Start the container
|
||||||
- Make the calculator available at http://localhost:8080
|
- Make the calculator available at http://localhost:8080
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
puffin-calculator:
|
puffin-calculator:
|
||||||
image: code.letsbe.solutions/matt/puffinoffsetcalculator:latest
|
build: .
|
||||||
container_name: puffin-calculator
|
container_name: puffin-calculator
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
puffin-calculator:
|
puffin-calculator:
|
||||||
image: code.letsbe.solutions/matt/puffinoffsetcalculator:latest
|
build: .
|
||||||
container_name: puffin-calculator
|
container_name: puffin-calculator
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
|
|
||||||
16
setup.sh
16
setup.sh
|
|
@ -25,20 +25,8 @@ if ! command -v docker-compose &> /dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Logging into Gitea container registry..."
|
echo "Building and starting the Docker container..."
|
||||||
echo "Please enter your Gitea credentials when prompted:"
|
docker-compose up -d --build
|
||||||
docker login code.letsbe.solutions
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "========================================"
|
|
||||||
echo "Error: Failed to log in to the Gitea registry."
|
|
||||||
echo "Please check your credentials and try again."
|
|
||||||
echo "========================================"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Pulling and starting the Docker container..."
|
|
||||||
docker-compose up -d
|
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue