Git Product home page Git Product logo

emscripten-ci's Introduction

Emscripten CI

The main purpose of this repository is hosting the Dockerfile for building the Docker image used for the Emscripten CircleCI build.

๐Ÿณ Pre-built Docker Image

This Dockerfile allows to build a Docker image, with the tools required for the Emscripten CI build. The image is hosted at Docker Hub and used by the CircleCI Emscripten Project.

The following sections describe the important parts of the Dockerfile.

Base Image

The FROM instruction sets the base image for the final Docker image. Also, all subsequent instructions are executed using this base image.

See FROM (Docker Reference).

Package Installation (apt-get)

Additional packages/tools required by the Emscripten CI build are installed via apt-get using the RUN instruction.

It is good practice to execute apt-get update && apt-get install * && apt-get clean cache using a single RUN instruction, as each docker instruction is creating a new read-only layer. Running apt-get clean helps keeping the resulting image size low (which would not be the case if apt-get install was executed as a separate RUN instruction).

It's recommended to sort the package names alphabetically. For better traceability we created separate package sections for build, docs and test packages.

See best practices for writing Dockerfiles.

Package Installation (pip)

Pip packages required by the Emscripten CI build are installed in a similar manner as described in the previous section. For example, the --no-cache-dir parameter is used in order to keep the size of the final image low.

Building the image and pushing it to Docker Hub

Use the following commands for updating the emscripten-ci pre-built Docker image:

โš ๏ธ Write access to the Docker Hub repository is required.

  1. Clone/pull the latest version of this repository

  2. Build docker image locally from the repository root (location of Dockerfile):

    docker build . --tag emscripten/emscripten-ci

  3. Login to your Docker Hub account (if not logged in already):

    docker login

  4. Push docker image to Docker Hub:

    docker push emscripten/emscripten-ci

See Docker CLI reference for further details.

emscripten-ci's People

Contributors

haraldreingruber avatar

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.