ProductPromotion
Logo

Elixir

made by https://0x3d.site

GitHub - nirvana/belvedere: An example of CircleCI integration with Elixir
An example of CircleCI integration with Elixir. Contribute to nirvana/belvedere development by creating an account on GitHub.
Visit Site

GitHub - nirvana/belvedere: An example of CircleCI integration with Elixir

GitHub - nirvana/belvedere: An example of CircleCI integration with Elixir

belvedere

Circle CI

This project exists as an example for continuous integration of Elixir on CircleCI.
It also works as a bit of a boilerplate project.

Features:

  • Builds your project as a docker container, and automatically pushes it to dockerhub if tests pass
  • Runs Dialyzer on your project
  • Caches build environment and container layers for quick build times.

HowTo

Getting this going in your project:

  • Copy the scripts/ci folder, circle.yml & Dockerfile to your project.
  • add {:earmark, "~> 0.1", only: :dev}, {:ex_doc, "~> 0.7", only: :dev} to mix.exs deps
  • Update the Erlang and Elixir versions to the latest in the Dockerfile
  • Set CIRCLE_PROJECT_REPONAME in the Dockerfile to your project's name
  • Make changes to the Docker File as appropriate for your project
  • Specify the deps and apps you care about for dialyzer in your mix file. (see our example)
  • Add credentials for the Docker.com repo to your CircleCI account (optional for deployment) https://circleci.com/docs/docker
  • Add the repo to CircleCI so that the webhook is installed

###Deploying to Docker Hub

This example also deploys the built image to Docker Hub after successfully building and testing. See the deployment section of circle.yml for details on how this is done. Note that three environment variables need to be set on CircleCI for the deployment to work:

  • DOCKER_EMAIL - The email address associated with the user with push access to the Docker Hub repository
  • DOCKER_USER - Docker Hub username
  • DOCKER_PASS - Docker Hub password (these are all stored encrypted on CircleCI, and you can create a deployment user with limited permission on Docker Hub if you like)

Also note that the Docker Hub repository name and Docker registry endpoint are hard-coded into circle.yml and .dockercfg.template respectively and would need to be changed to deploy to a different repository or registry.

###Publish to Hex

  • Pull your docker image and run it in a container. e.g. docker pull nirvana/belvedere docker run -i -t CONTAINER_ID
  • Authorize your hex user with mix hex.user auth
  • Publish the package with mix hex.publish
  • Publish the docs with mix hex.docs

##See also

Articles
to learn more about the elixir concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Elixir.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory