Skip to content

Dockerfiles to build swift versions with different dependencies and configurations

Notifications You must be signed in to change notification settings

YouClap/swift-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Swifty docker's 📦😍

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

Contents 📨

Dockerfile ssl dev

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.

Dockerfile ssl

Compiles a docker image with SSL for running purposes. Allows you to run an executable that requires SSL.

How can i use those images? 🚧

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.

How to build an image 🔨

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 😊

Next steps

  • 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.

About

With ❤️ from YouClap Development team

About

Dockerfiles to build swift versions with different dependencies and configurations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published