Uses kubernetes, helm and k14s Terraform providers to install JFrog Container Registry.
JFrog Container Registry is a free Artifactory edition with Docker and Helm repositories support.
Starts with the assumption that you have already provisioned a cluster.
cp terraform.tfvars.sample terraform.tfvars
Amend the values for
domain
ingress
kubeconfig_path
./create-jcr.sh
Obtain the value of jcr_endpoint
from your Terraform output.
Visit the site in your favorite browser and authenticate with
- username:
admin
- password:
password
Once authenticated, an onboarding wizard will start guiding you through the steps to setup your instance of JFrog Container Registry.
- Scroll through the text of the
EULA Confirmation
, then click the checkbox next to theI have read and agree to the terms and conditions stated in the EULA
to confirm you have read it, then click theNext
button. - Click the
Next
button without entering an email on theSubscribe for Newsletter
step. - Enter a password in the
New Password
andConfirm Password
fields of theReset Admin Password
step, then click theNext
button. - Enter a url in the
Select Base URL
field of theSet base URL
step, then click theNext
button. (The value you enter here should be the same as thejcr_endpoint
value from your Terraform output). - Click the
Next
button accepting the defaults in theConfigure Default Proxy
step. (We're choosing not to configure or secure a proxy). - Choose to create a
Local Repository
. Click theDocker
icon and enter a name for your repository (e.g.,images
), accept the defaults for other options, then clickSave & Finish
.- You may choose to repeat this process in order to create a
Helm
chart repository; in that case you'd click on theHelm
icon instead and supply a unique name (e.g.,helm-charts
).
- You may choose to repeat this process in order to create a
The steps above are illustrated in the JFrog Container Registry
Getting Started
documentation here.
So, how do you push a container image into the Docker repository hosted in your instance of JFrog Container Registry?
Here's a sample work flow
docker login https://jcr.daf.ironleg.me
docker pull busybox
docker tag busybox:latest jcr.daf.ironleg.me/docker/busybox:1.0
docker push jcr.daf.ironleg.me/docker/busybox:1.0
The following documentation provides more detailed information about how to work with a
./destroy-jcr.sh
- If you forgot to accept the EULA on first-time configuration, see this Stack Overflow answer to remedy.