Skip to content

chore(dogfood): update dogfood template to use artifactory #11452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

matifali
Copy link
Member

@matifali matifali commented Jan 5, 2024

This pull request updates the dogfood template to configure npm, pip, go and docker to fetch packages from the Artifactory. This also installs the JFrog extension in code-server.

@matifali matifali self-assigned this Jan 5, 2024
@matifali matifali changed the title Update to use Artifactory for Docker registry chore(dogfood): update dogfood template to use artifactory Jan 5, 2024
dogfood/main.tf Outdated
keep_locally = true
name = "${local.jfrog_host}/docker/${local.registry_name}:latest"
pull_triggers = [null_resource.update_trigger.id]
keep_locally = true
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was not working nicely with a private docker registry, so I had to resort to this hack,
I filed an issue with the docker provider.
kreuzwerker/terraform-provider-docker#593

Copy link
Member Author

Choose a reason for hiding this comment

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

This is also not working, and terraform is not pulling the latest image even though Artifactory has it.
There are open issues regarding this: kreuzwerker/terraform-provider-docker#172

Copy link
Member Author

Choose a reason for hiding this comment

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

We can skip pulling from the satisfactory in Terraform or use a new tag on each build. Probably short git sha.

Copy link
Member Author

Choose a reason for hiding this comment

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

After talking to @Emyrk, we decided not to use Artifactory to fetch pull docker image.

@matifali matifali requested review from mafredri and bpmct January 5, 2024 15:21
@matifali matifali merged commit 31f7b39 into main Jan 5, 2024
@matifali matifali deleted the dogfood-artifactory branch January 5, 2024 20:25
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants