Make sure IP address and app name placeholders are replaced
Some checks are pending
Some checks are pending
This commit is contained in:
parent
0f4f8e4770
commit
66e641c3b7
1 changed files with 5 additions and 2 deletions
|
@ -501,7 +501,7 @@ sudo mv /tmp/auth.htpasswd /etc/registry/auth/auth.htpasswd
|
||||||
|
|
||||||
**Note**: Pull operations are public and don't require authentication, but push operations require these credentials.
|
**Note**: Pull operations are public and don't require authentication, but push operations require these credentials.
|
||||||
|
|
||||||
#### 5.4 Update Configuration with Actual IP Address
|
#### 5.4 Update Configuration with Actual IP Address and Application Name
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Switch to SERVICE_USER (registry directory owner)
|
# Switch to SERVICE_USER (registry directory owner)
|
||||||
|
@ -517,11 +517,14 @@ echo "Your IP address is: $YOUR_ACTUAL_IP"
|
||||||
sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" docker-compose.yml
|
sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" docker-compose.yml
|
||||||
sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" nginx.conf
|
sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" nginx.conf
|
||||||
|
|
||||||
|
# Replace placeholder application name in configuration files
|
||||||
|
sed -i "s/APP_NAME/ACTUAL_APP_NAME/g" docker-compose.yml
|
||||||
|
|
||||||
# Exit SERVICE_USER shell
|
# Exit SERVICE_USER shell
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
**Important**: This step replaces all instances of `YOUR_CI_CD_IP` with your actual CI/CD Linode IP address in both the docker-compose.yml and nginx.conf files in the repository.
|
**Important**: This step replaces all instances of `YOUR_CI_CD_IP` with your actual CI/CD Linode IP address and all instances of `APP_NAME` with the actual application name in both the docker-compose.yml and nginx.conf files in the repository.
|
||||||
|
|
||||||
#### 5.5 Install Required Tools
|
#### 5.5 Install Required Tools
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue