From 510422f36ac7b7ed44af4de328086f909f5b20df Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sun, 25 Sep 2022 18:55:02 -0300 Subject: [PATCH] Added experimental Manjaro image --- .github/workflows/docker_hub_mk6.yml | 37 ++++++++++++++++++++++++++++ manjaro/Dockerfile | 36 +++++++++++++++++++++++++++ manjaro/build.sh | 2 ++ 3 files changed, 75 insertions(+) create mode 100644 .github/workflows/docker_hub_mk6.yml create mode 100644 manjaro/Dockerfile create mode 100755 manjaro/build.sh diff --git a/.github/workflows/docker_hub_mk6.yml b/.github/workflows/docker_hub_mk6.yml new file mode 100644 index 0000000..4480173 --- /dev/null +++ b/.github/workflows/docker_hub_mk6.yml @@ -0,0 +1,37 @@ +name: Docker Hub upload (normal) + +on: + push: + tags: + - b* + repository_dispatch: + types: [build_mk6] + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: setsoft/kicad_auto + + - name: Build and push Docker image + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + # context: tools/dev_image + push: true + tags: setsoft/kicad_auto:manjaro_k6 + labels: ${{ steps.meta.outputs.labels }} diff --git a/manjaro/Dockerfile b/manjaro/Dockerfile new file mode 100644 index 0000000..36f03d5 --- /dev/null +++ b/manjaro/Dockerfile @@ -0,0 +1,36 @@ +FROM manjarolinux/base +MAINTAINER Salvador E. Tropea +LABEL Description="KiCad with KiBot and other automation scripts" + +RUN pacman -Syyu --noconfirm && \ + pacman -S yay binutils python-pip --noconfirm && \ + su builder -c "yay -S --noconfirm rar" && \ + pacman -S kicad kicad-library ghostscript gsfonts imagemagick librsvg pandoc texlive-core --noconfirm && \ + pacman -S recordmydesktop xdotool xclip libxslt python-psutil python-xvfbwrapper --noconfirm && \ + pip install KiAuto && \ + pacman -S python-xlsxwriter --noconfirm && \ + git clone https://github.com/INTI-CMNB/KiBoM.git && \ + cd KiBoM/ && \ + pip install . && \ + cd .. && \ + rm -r KiBoM/ && \ + git clone https://github.com/INTI-CMNB/InteractiveHtmlBom.git && \ + cd InteractiveHtmlBom/ && \ + pip install . && \ + cd .. && \ + rm -r InteractiveHtmlBom/ && \ + pip install KiDiff && \ + pacman -S python-numpy python-lxml python-mistune1 python-pybars3 python-wand python-yaml python-pcbnewtransition python-scipy --noconfirm && \ + su builder -c "yay -S python-svgpathtools-git --noconfirm" && \ + git clone https://github.com/INTI-CMNB/PcbDraw.git && \ + cd PcbDraw/ && \ + git submodule update --init --recursive && \ + git checkout v0.9.0_maintain && \ + pip install . && \ + cd .. && \ + rm -r PcbDraw/ && \ + pacman -S python-inflection python-pyopenssl python-tldextract python-dateutil --noconfirm && \ + pip install kicost_digikey_api_v3 dependencies && \ + pacman -S python-beautifulsoup4 python-tqdm python-validators python-colorama python-pillow --noconfirm && \ + pip install kicost && \ + pip install kibot diff --git a/manjaro/build.sh b/manjaro/build.sh new file mode 100755 index 0000000..5b46fde --- /dev/null +++ b/manjaro/build.sh @@ -0,0 +1,2 @@ +#!/bin/sh +docker build -f Dockerfile -t setsoft/kicad_auto:manjaro_k6 .