This repository contains Dockerfiles to build docker images with swift and the configurations needed for our services or development in general.
To know more about our development and deployment process, check out our Playbook
Compiles a docker image with SSL for development and compile purposes.
For example, we use Swift NIO and NIOTLS
depends on openssl
and so, in order to be able to build our services in Linux, we need to install libssl-dev
.
Compiles a docker image with SSL for running purposes.
Allows you to run an executable that requires SSL
.
They are public in the docker container registry, so if you search for swift-ssl
you will find it.
You can also see them in our docker hub organization page
They use the swift version as the tag for the image.
For now, until we find out a better way to generate images without have to duplicate each Dockerfile, you only have the 5.0.1
version available.
It's easy, you just need to specify the path to the Dockerfile you want to use as source.
For example, let's build the image with SSL for production only, we use the Dockerfile-ssl
and let's tag it with youclap/swift-ssl-dev:5.0.1
docker build -f Dockerfile-ssl -t youclap/swift-ssl-dev:5.0.1
That's it, now just push it to the registry 😊
- Improve dockerfile naming and generation
- Add a pipeline to build and push images directly to the registry
- Automatic tag versions. Perhaps use swift version and openssl version, who knows.
With ❤️ from YouClap Development team