Coder Social home page Coder Social logo

docker's Introduction

Groups

Ubuntu 20.04 package

Dockerfile-ubuntu-20.04-package relies on Dockerfile-ubuntu-20.04-build

To build, from the repo root

  1. Build a docker image that contains all the dependencies necessary to build Chatterino on Ubuntu 20.04
    docker buildx build -t chatterino-ubuntu-20.04-base -f .docker/Dockerfile-ubuntu-20.04-base .
  2. Build a docker image that contains all the build artifacts and source from building Chatterino on Ubuntu 20.04
    docker buildx build -t chatterino-ubuntu-20.04-build -f .docker/Dockerfile-ubuntu-20.04-build .
  3. Build a docker image that uses the above-built image & packages it into a .deb file
    docker buildx build -t chatterino-ubuntu-20.04-package -f .docker/Dockerfile-ubuntu-20.04-package .

To extract the final package, you can run the following command:
docker run -v $PWD:/opt/mount --rm -it chatterino-ubuntu-20.04-package bash -c "cp /src/build/Chatterino-x86_64.deb /opt/mount/"

Ubuntu 22.04 package

Dockerfile-ubuntu-22.04-package relies on Dockerfile-ubuntu-22.04-build

To build, from the repo root

  1. Build a docker image that contains all the dependencies necessary to build Chatterino on Ubuntu 22.04
    docker buildx build -t chatterino-ubuntu-22.04-base -f .docker/Dockerfile-ubuntu-22.04-base .
  2. Build a docker image that contains all the build artifacts and source from building Chatterino on Ubuntu 22.04
    docker buildx build -t chatterino-ubuntu-22.04-build -f .docker/Dockerfile-ubuntu-22.04-build .
  3. Build a docker image that uses the above-built image & packages it into a .deb file
    docker buildx build -t chatterino-ubuntu-22.04-package -f .docker/Dockerfile-ubuntu-22.04-package .

To extract the final package, you can run the following command:
docker run -v $PWD:/opt/mount --rm -it chatterino-ubuntu-22.04-package bash -c "cp /src/build/Chatterino-x86_64.deb /opt/mount/"

NOTE: The AppImage from Ubuntu 22.04 is broken. Approach with caution

Testing

  1. Build a docker image builds the Chatterino tests
    docker buildx build -t chatterino-ubuntu-22.04-test -f .docker/Dockerfile-ubuntu-22.04-test .
  2. Run the tests
    docker run --rm --network=host chatterino-ubuntu-22.04-test

docker's People

Contributors

pajlada avatar

Watchers

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