Skip to content

fix(agw): updated docker install script for agw#13726

Merged
tmdzk merged 9 commits intomagma:masterfrom
ShubhamTatvamasi:agw-docker-image-tags-update
Aug 25, 2022
Merged

fix(agw): updated docker install script for agw#13726
tmdzk merged 9 commits intomagma:masterfrom
ShubhamTatvamasi:agw-docker-image-tags-update

Conversation

@ShubhamTatvamasi
Copy link
Copy Markdown
Member

Signed-off-by: Shubham Tatvamasi [email protected]

Summary

Test Plan

Additional Information

  • This change is backwards-breaking

@ShubhamTatvamasi ShubhamTatvamasi requested review from a team August 24, 2022 20:10
@ShubhamTatvamasi ShubhamTatvamasi requested review from a team as code owners August 24, 2022 20:10
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines. label Aug 24, 2022
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: docs Documentation-related issue labels Aug 24, 2022
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines. and removed size/S Denotes a PR that changes 10-29 lines. labels Aug 24, 2022
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 24, 2022

feg-workflow

    2 files  203 suites   40s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit ce7769d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 24, 2022

dp-workflow

13 tests   13 ✔️  2m 50s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit ce7769d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 24, 2022

agw-workflow

615 tests   611 ✔️  5m 9s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit ce7769d.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your PR is called "updated docker install script for agw", but it also updates debian install?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted this change.

Comment thread lte/gateway/docker/docker-compose.yaml Outdated
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}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be my bad, but if it comes in the end it is a POSTFIX and not a PREFIX?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to POSTFIX

Comment thread lte/gateway/docker/.env Outdated
DOCKER_REGISTRY=
IMAGE_VERSION=latest
DOCKER_REGISTRY=docker.artifactory.magmacore.org/
IMAGE_VERSION=1.8.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not desired for the build. I will revert this change and update the installation script for adding the docker registry.

Comment thread lte/gateway/deploy/agw_install_docker.sh

# 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo su - root is equivalent to sudo -i which is recomended AFAIK.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of becoming root, you can replace the cat below with:

cat << EOF | sudo tee /var/opt/magma/configs/control_proxy.yml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated as per your suggestion.

```bash
sudo su
cd /root
sudo su - root
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo su - root is equivalent to sudo -i which is recomended AFAIK.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to add sudo in front of the following docker-compose and docker calls.

Copy link
Copy Markdown
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShubhamTatvamasi ShubhamTatvamasi enabled auto-merge (squash) August 25, 2022 13:39
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]>
@ShubhamTatvamasi ShubhamTatvamasi force-pushed the agw-docker-image-tags-update branch from 131e700 to ce7769d Compare August 25, 2022 13:41
@ShubhamTatvamasi ShubhamTatvamasi enabled auto-merge (squash) August 25, 2022 14:42
@ShubhamTatvamasi
Copy link
Copy Markdown
Member Author

@tmdzk semantic-pr is stuck, what to do?

@tmdzk
Copy link
Copy Markdown
Collaborator

tmdzk commented Aug 25, 2022

@tmdzk semantic-pr is stuck, what to do?

image

@tmdzk tmdzk disabled auto-merge August 25, 2022 15:38
@tmdzk tmdzk merged commit d122958 into magma:master Aug 25, 2022
@MagmaCIBot
Copy link
Copy Markdown

💔 All backports failed

Status Branch Result
v1.8 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 13726

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

ShubhamTatvamasi added a commit to ShubhamTatvamasi/magma that referenced this pull request Aug 25, 2022
ShubhamTatvamasi added a commit to ShubhamTatvamasi/magma that referenced this pull request Aug 25, 2022
crasu pushed a commit to crasu/magma that referenced this pull request Sep 5, 2022
wolfseb pushed a commit to wolfseb/magma that referenced this pull request Oct 3, 2022
jordanvrtanoski pushed a commit to jordanvrtanoski/magma that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.8 component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: docs Documentation-related issue size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants