Giter Club home page Giter Club logo

dockerfiles's Introduction

Dockerfiles ๐Ÿณ

Dockerfiles that ships with dependencies for running Vapor projects (including CStack) on Linux. These images are used in our Circle CI scripts.

Currently we have the following images:

  • Dockerfile-Swift3 which is using Swift 3 and is supposed to be used for Vapor 1 projects. The image is pushed to here.
  • Dockerfile-Swift4 which is using Swift 4 and is supposed to be used for Vapor 2 projects. The image is pushed to here
  • Dockerfile-Swift4.1 which is using Swift 4.1 and is supposed to be used for Vapor 2 or 3 projects. The image is pushed to here with tag "swift-4.1".
  • Dockerfile-Swift4.2 which is using Swift 4.2 (release) and is supposed to be used for Vapor 2 or 3 projects. The image is pushed to here with tag "swift-4.2".
  • Dockerfile-Swift5 which is using Swift 5.0 and is supposed to be used for Vapor 3 or 4 projects. The image is pushed to here with tag "swift-5.0".

๐Ÿ›  Updating the Docker images

A guide for building new images based on Dockerfiles can be found here.

โ˜๏ธ Hosting

To make it easier to run a Vapor app through a Docker container, we have the following Dockerfiles for guidance:

  • Hosting/Dockerfile-Swift4.1 which is using Swift 4.1 and is supposed to be used for Vapor 2 or Vapor 3 projects.
  • Hosting/Dockerfile-Swift4.2 which is using Swift 4.2 and is supposed to be used for Vapor 2 or Vapor 3 projects.
  • Hosting/Dockerfile-Swift5.0 which is using Swift 5.0 and is supposed to be used for Vapor 3 or Vapor 4 projects.

Further, we have the following Docker Compose files for spinning up full environments including database and Redis:

  • Hosting/docker-compose-mysql.yml which is using MySQL 5.7 and the latest version of Redis.

๐Ÿ‘Œ Testing

To make it easier to test Vapor apps locally on Linux using Docker, we have made the following Dockerfiles:

  • Testing/Dockerfile-Swift4.1 which is using Swift 4.1 and is supposed to be used for Vapor 2 or Vapor 3 projects.
  • Testing/Dockerfile-Swift4.2 which is using Swift 4.1 and is supposed to be used for Vapor 2 or Vapor 3 projects.

๐ŸŒณ Environment variables

Environment variables are supported in Docker. Please read the docs regarding environment variables for info regarding how to configure them.

In short composer prioritizes environment variables in the following order:

  1. Compose file
  2. Shell environment variables
  3. Environment file
  4. Dockerfile
  5. Variable is not defined

If you want to use a .env-file, make sure to remove the environment section in your docker-compose file as described in the docs, referenced above.

๐Ÿ† Credits

This package is developed and maintained by the Vapor team at Nodes. The package owner for this project is Steffen.

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license

dockerfiles's People

Contributors

cweinberger avatar heidipuk avatar rasmusebbesen avatar siemensikkema avatar steffendsommer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.