The production build and deploy of this application is done using the fly CLI.
-
fly auth login
to select the account to which deployment will take place -
Go to the github repository and check what the new version number should be
-
edit
deploy.sh
to confirm the application name- if
--local-only
is present, start local Docker - for a remote build, remove
--local-only
- if
-
run
deploy.sh
with the new version number as a argument- fly will notice the presence of a Dockerfile
- fly will use the Docker file to build the application on a remote docker serve
- fly will deploy the application under the name indicated in deploy.sh
-
Go to the github repository and create a release with the new tag
For development, the application is like all the other owlcms apps, but must run on Linux
- If running on Windows, open a WSL window and go to the git repository
- run
code .
to start VSCode (at the bottom left you should see it is running on WSL) - Run the
app.owlcms.fly.Main
class.
- run
To pull an image from registry.fly.io
, you need to authenticate with the Fly.io registry and then use the Docker CLI to pull the image. Here are the steps:
- Open your terminal.
- Run the following command to authenticate with the Fly.io registry:
This command adds
fly auth docker
registry.fly.io
to the Docker daemon's authenticated registries².
-
Identify the image name you want to pull. You can find the image name by running:
fly releases --image
This command will return a table with a column called 'Docker Image', which will look something like
registry.fly.io/app-name-here@sha256:long-hash-here
³. -
Pull the image using the Docker CLI:
docker pull registry.fly.io/app-name-here@sha256:long-hash-here
This will pull the specified image from the Fly.io registry to your local machine.