fix(agw): updated docker install script for agw#13726
Conversation
|
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
maxhbr
left a comment
There was a problem hiding this comment.
I do not think, that this is a fix.
| NEED_REBOOT=0 | ||
| WHOAMI=$(whoami) | ||
| MAGMA_VERSION="${MAGMA_VERSION:-v1.7}" | ||
| MAGMA_VERSION="${MAGMA_VERSION:-v1.8}" |
There was a problem hiding this comment.
your PR is called "updated docker install script for agw", but it also updates debian install?
There was a problem hiding this comment.
Reverted this change.
| x-agw-python-service: &pyservice | ||
| <<: *service | ||
| image: ${DOCKER_REGISTRY}agw_gateway_python:${IMAGE_VERSION} | ||
| image: ${DOCKER_REGISTRY}agw_gateway_python${OPTIONAL_ARCH_PREFIX}:${IMAGE_VERSION} |
There was a problem hiding this comment.
might be my bad, but if it comes in the end it is a POSTFIX and not a PREFIX?
There was a problem hiding this comment.
Updated to POSTFIX
| DOCKER_REGISTRY= | ||
| IMAGE_VERSION=latest | ||
| DOCKER_REGISTRY=docker.artifactory.magmacore.org/ | ||
| IMAGE_VERSION=1.8.0 |
There was a problem hiding this comment.
If I understand that correctly, from now on if you call docker-compose build the resulting artifacts will be tagged like docker.artifactory.magmacore.org/agw_gateway_c:1.8.0 locally, instead of agw_gateway_c:latest. Is that desired?
There was a problem hiding this comment.
That is not desired for the build. I will revert this change and update the installation script for adding the docker registry.
|
|
||
| # Update this only for ARM node | ||
| sed -i 's/COMPOSE_PROJECT_NAME=agw/COMPOSE_PROJECT_NAME=agw_arm64/' /var/opt/magma/docker/.env | ||
| sudo su - root |
There was a problem hiding this comment.
sudo su - root is equivalent to sudo -i which is recomended AFAIK.
There was a problem hiding this comment.
Instead of becoming root, you can replace the cat below with:
cat << EOF | sudo tee /var/opt/magma/configs/control_proxy.yml
There was a problem hiding this comment.
Updated as per your suggestion.
| ```bash | ||
| sudo su | ||
| cd /root | ||
| sudo su - root |
There was a problem hiding this comment.
sudo su - root is equivalent to sudo -i which is recomended AFAIK.
There was a problem hiding this comment.
Updated this to sudo -i
|
|
||
| ```bash | ||
| cat << EOF > /var/opt/magma/configs/control_proxy.yml | ||
| cat << EOF | sudo tee /var/opt/magma/configs/control_proxy.yml |
There was a problem hiding this comment.
I think you need to add sudo in front of the following docker-compose and docker calls.
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
Signed-off-by: Shubham Tatvamasi <[email protected]>
131e700 to
ce7769d
Compare
|
@tmdzk |
|
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Signed-off-by: Shubham Tatvamasi <[email protected]>

Signed-off-by: Shubham Tatvamasi [email protected]
Summary
Test Plan
Additional Information