Adapted KiCad 5 and 7 to the new layers
This commit is contained in:
parent
f578739521
commit
05d073e562
|
|
@ -1,11 +1,11 @@
|
|||
name: KiBot (KiCad 6 Full) Docker image
|
||||
name: KiBot (KiCad 5) Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- ki6f_*
|
||||
- ki5_*
|
||||
repository_dispatch:
|
||||
types: [build_k6f]
|
||||
types: [build_k5]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
|
|
@ -34,5 +34,5 @@ jobs:
|
|||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
cd ki6_full
|
||||
cd ki5
|
||||
./build.sh
|
||||
|
|
@ -1,15 +1,15 @@
|
|||
name: Docker Hub upload (normal)
|
||||
name: KiBot (KiCad 5 deps) Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- b*
|
||||
- ki5p_*
|
||||
repository_dispatch:
|
||||
types: [build_k5]
|
||||
types: [build_k5p]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub and GitHub Packages
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
|
|
@ -32,25 +32,11 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
setsoft/kicad_auto
|
||||
ghcr.io/${{ github.repository }}
|
||||
ghcr.io/inti-cmnb/kicad5_auto
|
||||
tags: |
|
||||
type=raw,latest
|
||||
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
# context: tools/dev_image
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Trigger KiCad-Auto-Test image build
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto_test/dispatches --data '{"event_type": "build_k5"}'
|
||||
cd ki5_pre
|
||||
./build.sh
|
||||
|
||||
- name: Trigger KiCad-Auto image build
|
||||
run: |
|
||||
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto/dispatches --data '{"event_type": "build_k5"}'
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
name: KiBot (KiCad 6 deps) Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- ki6p_*
|
||||
repository_dispatch:
|
||||
types: [build_k6p]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
cd ki6_pre
|
||||
./build.sh
|
||||
|
||||
- name: Trigger KiCad-Auto image build
|
||||
run: |
|
||||
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto/dispatches --data '{"event_type": "build_k6"}'
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
name: KiBot (KiCad 7) Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- ki7_*
|
||||
repository_dispatch:
|
||||
types: [build_k7]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
cd ki7
|
||||
./build.sh
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
name: KiBot (KiCad 7 deps) Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- ki7p_*
|
||||
repository_dispatch:
|
||||
types: [build_k7p]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
cd ki7_pre
|
||||
./build.sh
|
||||
|
||||
- name: Trigger KiCad-Auto image build
|
||||
run: |
|
||||
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/INTI-CMNB/kicad_auto/dispatches --data '{"event_type": "build_k7"}'
|
||||
2
build.sh
2
build.sh
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
docker build -f Dockerfile -t setsoft/kicad_auto:latest .
|
||||
98
do_tag.py
98
do_tag.py
|
|
@ -1,98 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
import os
|
||||
import re
|
||||
import stat
|
||||
import subprocess
|
||||
|
||||
CUR_VERSION = '1.6.0'
|
||||
CUR_K5 = '5.1.9'
|
||||
CUR_K6 = '6.0.10'
|
||||
CUR_DEB = '11.6'
|
||||
ITERA = '1'
|
||||
|
||||
TAGS = {'latest': CUR_DEB+'-'+CUR_K5, 'ki6': 'ki'+CUR_K6+'_Debian'}
|
||||
NEW_TAGS = {'latest': '-'+ITERA+'_k'+CUR_K5+'_d'+CUR_DEB, 'ki6': '-'+ITERA+'_k'+CUR_K6+'_d'+CUR_DEB}
|
||||
NEW_DEB1 = {'latest': CUR_K5, 'ki6': CUR_K6}
|
||||
NEW_DEB2 = {'latest': CUR_K5+'_d'+CUR_DEB, 'ki6': CUR_K6+'_d'+CUR_DEB}
|
||||
IMAGES = ['kicad_debian', 'kicad_auto', 'kicad_auto_test']
|
||||
NEW_NAMES = {'kicad_auto:latest': 'kicad5_auto',
|
||||
'kicad_auto:ki6': 'kicad6_auto',
|
||||
'kicad_auto_test:latest': 'kicad5_auto_full',
|
||||
'kicad_auto_test:ki6': 'kicad6_auto_full'}
|
||||
NEW_NAMES_D = {'kicad_debian:latest': 'kicad5_debian',
|
||||
'kicad_debian:ki6': 'kicad6_debian'}
|
||||
OWNER = 'setsoft'
|
||||
OWNER2 = 'ghcr.io/inti-cmnb'
|
||||
DEBUG = False
|
||||
|
||||
|
||||
def do_tag(name, hash, current):
|
||||
cmd = ['docker', 'tag', hash, name]
|
||||
print('{} -> {}'.format(current, cmd))
|
||||
if not DEBUG:
|
||||
subprocess.run(cmd, check=True)
|
||||
|
||||
|
||||
res = subprocess.run(['docker', 'images'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True)
|
||||
reg = re.compile(r'^(\S+)\s+(\S+)\s+([0-9a-z]+)\s+')
|
||||
|
||||
if 1:
|
||||
for ln in res.stdout.decode().split('\n'):
|
||||
r = reg.search(ln)
|
||||
if r is None:
|
||||
continue
|
||||
r = r.groups()
|
||||
tag = r[1]
|
||||
if tag not in TAGS:
|
||||
continue
|
||||
r1 = r[0].split('/')
|
||||
if len(r1) != 2 or r1[0] != OWNER:
|
||||
continue
|
||||
img = r1[1]
|
||||
if img not in IMAGES:
|
||||
continue
|
||||
hash = r[2]
|
||||
current = r[0]+':'+tag
|
||||
do_tag('{}/{}:{}'.format(OWNER, img, TAGS[tag]), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, img, TAGS[tag]), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, img, tag), hash, current)
|
||||
old_lu = img+':'+tag
|
||||
try:
|
||||
new_img = NEW_NAMES[old_lu]
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, 'latest'), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, CUR_VERSION), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, CUR_VERSION+NEW_TAGS[tag]), hash, current)
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
new_img = NEW_NAMES_D[old_lu]
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, 'latest'), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, NEW_DEB1[tag]), hash, current)
|
||||
do_tag('{}/{}:{}'.format(OWNER2, new_img, NEW_DEB2[tag]), hash, current)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
with open('push.sh', 'wt') as f:
|
||||
f.write('#!/bin/sh\n')
|
||||
for o in [OWNER, OWNER2]:
|
||||
for i in IMAGES:
|
||||
for t in TAGS.values():
|
||||
f.write('docker push {}/{}:{}\n'.format(o, i, t))
|
||||
if o == OWNER2:
|
||||
for i in IMAGES:
|
||||
f.write('docker push {}/{}:latest\n'.format(o, i))
|
||||
f.write('docker push {}/{}:ki6\n'.format(o, i))
|
||||
if i == 'kicad_debian':
|
||||
for t in TAGS.keys():
|
||||
new_name = NEW_NAMES_D[i+':'+t]
|
||||
f.write('docker push {}/{}:latest\n'.format(o, new_name))
|
||||
f.write('docker push {}/{}:{}\n'.format(o, new_name, NEW_DEB1[t]))
|
||||
f.write('docker push {}/{}:{}\n'.format(o, new_name, NEW_DEB2[t]))
|
||||
else:
|
||||
for t in TAGS.keys():
|
||||
new_name = NEW_NAMES[i+':'+t]
|
||||
f.write('docker push {}/{}:latest\n'.format(o, new_name))
|
||||
f.write('docker push {}/{}:{}\n'.format(o, new_name, CUR_VERSION))
|
||||
f.write('docker push {}/{}:{}\n'.format(o, new_name, CUR_VERSION+NEW_TAGS[t]))
|
||||
os.chmod('push.sh', stat.S_IRWXU)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
FROM ghcr.io/inti-cmnb/kicad5_auto:latest_deps
|
||||
MAINTAINER Salvador E. Tropea <set@ieee.org>
|
||||
LABEL Description="KiCad 5 w/KiBot and other automation scripts"
|
||||
LABEL org.opencontainers.image.description "KiCad 5 w/KiBot and other automation scripts"
|
||||
|
||||
# Install all the tools, dependencies are already installed
|
||||
RUN apt-get update && \
|
||||
dl_deb.py INTI-CMNB/KiBoM && \
|
||||
dl_deb.py INTI-CMNB/kicad-git-filters && \
|
||||
dl_deb.py set-soft/kicost-digikey-api-v3 && \
|
||||
dl_deb.py hildogjr/KiCost && \
|
||||
dl_deb.py INTI-CMNB/InteractiveHtmlBom && \
|
||||
dl_deb.py INTI-CMNB/KiAuto && \
|
||||
dl_deb.py INTI-CMNB/kidiff && \
|
||||
dl_deb.py INTI-CMNB/KiBot && \
|
||||
apt -y install --no-install-recommends ./*.deb && \
|
||||
apt-get -y autoremove && \
|
||||
rm /*.deb && \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/debconf/templates.dat-old /var/lib/dpkg/status-old
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
docker build -f Dockerfile -t ghcr.io/inti-cmnb/kicad5_auto:latest .
|
||||
IT=2
|
||||
TG1=`docker run --rm ghcr.io/inti-cmnb/kicad5_auto:latest kibot --version | sed 's/.* \([0-9]\+\.[0-9]\+\.[0-9]\+\) .*/\1/' | tr -d '\n'`
|
||||
TG2=k`docker run --rm ghcr.io/inti-cmnb/kicad5_auto:latest kicad_version.py`
|
||||
TG3=d`docker run --rm ghcr.io/inti-cmnb/kicad5_auto:latest cat /etc/debian_version | tr -d '\n'`
|
||||
docker tag ghcr.io/inti-cmnb/kicad5_auto:latest ghcr.io/inti-cmnb/kicad5_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
docker tag ghcr.io/inti-cmnb/kicad5_auto:latest ghcr.io/inti-cmnb/kicad5_auto:${TG1}
|
||||
docker tag ghcr.io/inti-cmnb/kicad5_auto:latest ghcr.io/inti-cmnb/kicad_auto:latest
|
||||
docker tag ghcr.io/inti-cmnb/kicad5_auto:latest setsoft/kicad_auto:latest
|
||||
docker push ghcr.io/inti-cmnb/kicad5_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
docker push ghcr.io/inti-cmnb/kicad5_auto:${TG1}
|
||||
docker push ghcr.io/inti-cmnb/kicad5_auto:latest
|
||||
docker push ghcr.io/inti-cmnb/kicad_auto:latest
|
||||
docker push setsoft/kicad_auto:latest
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it ghcr.io/inti-cmnb/kicad5_auto:latest /bin/bash
|
||||
|
|
@ -10,4 +10,4 @@ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
|||
--volume="/etc/passwd:/etc/passwd:ro" \
|
||||
--volume="/etc/shadow:/etc/shadow:ro" \
|
||||
--volume="/home/$USER:/home/$USER:rw" \
|
||||
setsoft/kicad_auto:latest /bin/bash
|
||||
ghcr.io/inti-cmnb/kicad5_auto:latest /bin/bash
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
FROM ghcr.io/inti-cmnb/kicad5_debian:latest
|
||||
MAINTAINER Salvador E. Tropea <set@ieee.org>
|
||||
LABEL Description="Layer used for new dependencies"
|
||||
LABEL org.opencontainers.image.description "Layer used for new dependencies"
|
||||
|
||||
RUN apt-get update && \
|
||||
echo "Use wget to download some stuff" && \
|
||||
apt -y install --no-install-recommends wget && \
|
||||
echo "XLSX Writer 3 fixes some important limitations in URLs (used by KiBoM, KiCost, KiBot, etc.)" && \
|
||||
wget http://http.us.debian.org/debian/pool/main/x/xlsxwriter/python3-xlsxwriter_3.0.2-2_all.deb && \
|
||||
apt -y install --no-install-recommends ./*.deb && \
|
||||
apt-get -y remove wget && \
|
||||
apt-get -y autoremove && \
|
||||
rm /*.deb && \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/debconf/templates.dat-old /var/lib/dpkg/status-old
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
docker build -f Dockerfile -t ghcr.io/inti-cmnb/kicad5_auto:latest_deps .
|
||||
TG1=`docker run --rm ghcr.io/inti-cmnb/kicad5_auto:latest_deps kicad_version.py`
|
||||
TG2=d`docker run --rm ghcr.io/inti-cmnb/kicad5_auto:latest_deps cat /etc/debian_version | tr -d '\n'`
|
||||
docker tag ghcr.io/inti-cmnb/kicad5_auto:latest_deps ghcr.io/inti-cmnb/kicad5_auto:${TG1}_${TG2}_deps
|
||||
docker push ghcr.io/inti-cmnb/kicad5_auto:${TG1}_${TG2}_deps
|
||||
docker push ghcr.io/inti-cmnb/kicad5_auto:latest_deps
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it ghcr.io/inti-cmnb/kicad5_auto:latest_deps /bin/bash
|
||||
|
|
@ -10,4 +10,4 @@ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
|||
--volume="/etc/passwd:/etc/passwd:ro" \
|
||||
--volume="/etc/shadow:/etc/shadow:ro" \
|
||||
--volume="/home/$USER:/home/$USER:rw" \
|
||||
setsoft/kicad_auto:dev /bin/bash
|
||||
ghcr.io/inti-cmnb/kicad5_auto:latest_deps /bin/bash
|
||||
10
ki6/build.sh
10
ki6/build.sh
|
|
@ -8,9 +8,9 @@ docker tag ghcr.io/inti-cmnb/kicad6_auto:latest ghcr.io/inti-cmnb/kicad6_auto:${
|
|||
docker tag ghcr.io/inti-cmnb/kicad6_auto:latest ghcr.io/inti-cmnb/kicad6_auto:${TG1}
|
||||
docker tag ghcr.io/inti-cmnb/kicad6_auto:latest ghcr.io/inti-cmnb/kicad_auto:ki6
|
||||
docker tag ghcr.io/inti-cmnb/kicad6_auto:latest setsoft/kicad_auto:ki6
|
||||
#docker push ghcr.io/inti-cmnb/kicad6_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
#docker push ghcr.io/inti-cmnb/kicad6_auto:${TG1}
|
||||
#docker push ghcr.io/inti-cmnb/kicad6_auto:latest
|
||||
#docker push ghcr.io/inti-cmnb/kicad_auto_test:ki6
|
||||
#docker push setsoft/kicad_auto_test:ki6
|
||||
docker push ghcr.io/inti-cmnb/kicad6_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
docker push ghcr.io/inti-cmnb/kicad6_auto:${TG1}
|
||||
docker push ghcr.io/inti-cmnb/kicad6_auto:latest
|
||||
docker push ghcr.io/inti-cmnb/kicad_auto:ki6
|
||||
docker push setsoft/kicad_auto:ki6
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
FROM ghcr.io/inti-cmnb/kicad7_auto:latest_deps
|
||||
MAINTAINER Salvador E. Tropea <set@ieee.org>
|
||||
LABEL Description="KiCad 7 w/KiBot and other automation scripts"
|
||||
LABEL org.opencontainers.image.description "KiCad 7 w/KiBot and other automation scripts"
|
||||
|
||||
# Install all the tools, dependencies are already installed
|
||||
RUN apt-get update && \
|
||||
dl_deb.py INTI-CMNB/KiBoM && \
|
||||
dl_deb.py INTI-CMNB/kicad-git-filters && \
|
||||
dl_deb.py set-soft/kicost-digikey-api-v3 && \
|
||||
dl_deb.py hildogjr/KiCost && \
|
||||
dl_deb.py INTI-CMNB/InteractiveHtmlBom && \
|
||||
dl_deb.py set-soft/pcbnewTransition && \
|
||||
dl_deb.py INTI-CMNB/KiKit --skip kikit-doc && \
|
||||
dl_deb.py INTI-CMNB/KiAuto && \
|
||||
dl_deb.py INTI-CMNB/kidiff && \
|
||||
dl_deb.py INTI-CMNB/KiBot && \
|
||||
apt -y install --no-install-recommends ./*.deb && \
|
||||
apt-get -y autoremove && \
|
||||
rm /*.deb && \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/debconf/templates.dat-old /var/lib/dpkg/status-old
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
docker build -f Dockerfile -t ghcr.io/inti-cmnb/kicad7_auto:latest .
|
||||
IT=2
|
||||
TG1=`docker run --rm ghcr.io/inti-cmnb/kicad7_auto:latest kibot --version | sed 's/.* \([0-9]\+\.[0-9]\+\.[0-9]\+\) .*/\1/' | tr -d '\n'`
|
||||
TG2=k`docker run --rm ghcr.io/inti-cmnb/kicad7_auto:latest kicad_version.py`
|
||||
TG3=d`docker run --rm ghcr.io/inti-cmnb/kicad7_auto:latest cat /etc/debian_version | tr -d '\n'`
|
||||
docker tag ghcr.io/inti-cmnb/kicad7_auto:latest ghcr.io/inti-cmnb/kicad7_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
docker tag ghcr.io/inti-cmnb/kicad7_auto:latest ghcr.io/inti-cmnb/kicad7_auto:${TG1}
|
||||
docker tag ghcr.io/inti-cmnb/kicad7_auto:latest ghcr.io/inti-cmnb/kicad_auto:ki7
|
||||
docker tag ghcr.io/inti-cmnb/kicad7_auto:latest setsoft/kicad_auto:ki7
|
||||
docker push ghcr.io/inti-cmnb/kicad7_auto:${TG1}-${IT}_${TG2}_${TG3}
|
||||
docker push ghcr.io/inti-cmnb/kicad7_auto:${TG1}
|
||||
docker push ghcr.io/inti-cmnb/kicad7_auto:latest
|
||||
docker push ghcr.io/inti-cmnb/kicad_auto:ki7
|
||||
docker push setsoft/kicad_auto:ki7
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it ghcr.io/inti-cmnb/kicad7_auto:latest /bin/bash
|
||||
|
|
@ -10,4 +10,4 @@ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
|||
--volume="/etc/passwd:/etc/passwd:ro" \
|
||||
--volume="/etc/shadow:/etc/shadow:ro" \
|
||||
--volume="/home/$USER:/home/$USER:rw" \
|
||||
ghcr.io/inti-cmnb/kicad6_auto:dev /bin/bash
|
||||
ghcr.io/inti-cmnb/kicad7_auto:latest /bin/bash
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
FROM ghcr.io/inti-cmnb/kicad7_debian:latest
|
||||
MAINTAINER Salvador E. Tropea <set@ieee.org>
|
||||
LABEL Description="Layer used for new dependencies"
|
||||
LABEL org.opencontainers.image.description "Layer used for new dependencies"
|
||||
|
||||
RUN apt-get update && \
|
||||
echo "Use wget to download some stuff" && \
|
||||
apt -y install --no-install-recommends wget && \
|
||||
echo "XLSX Writer 3 fixes some important limitations in URLs (used by KiBoM, KiCost, KiBot, etc.)" && \
|
||||
wget http://http.us.debian.org/debian/pool/main/x/xlsxwriter/python3-xlsxwriter_3.0.2-2_all.deb && \
|
||||
apt -y install --no-install-recommends ./*.deb && \
|
||||
apt-get -y remove wget && \
|
||||
apt-get -y autoremove && \
|
||||
rm /*.deb && \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/debconf/templates.dat-old /var/lib/dpkg/status-old
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
docker build -f Dockerfile -t ghcr.io/inti-cmnb/kicad7_auto:latest_deps .
|
||||
TG1=`docker run --rm ghcr.io/inti-cmnb/kicad7_auto:latest_deps kicad_version.py`
|
||||
TG2=d`docker run --rm ghcr.io/inti-cmnb/kicad7_auto:latest_deps cat /etc/debian_version | tr -d '\n'`
|
||||
docker tag ghcr.io/inti-cmnb/kicad7_auto:latest_deps ghcr.io/inti-cmnb/kicad7_auto:${TG1}_${TG2}_deps
|
||||
docker push ghcr.io/inti-cmnb/kicad7_auto:${TG1}_${TG2}_deps
|
||||
docker push ghcr.io/inti-cmnb/kicad7_auto:latest_deps
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it ghcr.io/inti-cmnb/kicad7_auto:latest_deps /bin/bash
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
export USER_ID=$(id -u)
|
||||
export GROUP_ID=$(id -g)
|
||||
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
||||
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
||||
--user $USER_ID:$GROUP_ID \
|
||||
--env NO_AT_BRIDGE=1 \
|
||||
--workdir="/home/$USER" \
|
||||
|
|
@ -10,4 +10,4 @@ docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
|||
--volume="/etc/passwd:/etc/passwd:ro" \
|
||||
--volume="/etc/shadow:/etc/shadow:ro" \
|
||||
--volume="/home/$USER:/home/$USER:rw" \
|
||||
setsoft/kicad_auto:latest kicad
|
||||
ghcr.io/inti-cmnb/kicad7_auto:latest_deps /bin/bash
|
||||
15
run.sh
15
run.sh
|
|
@ -1,15 +0,0 @@
|
|||
export USER_ID=$(id -u)
|
||||
export GROUP_ID=$(id -g)
|
||||
WORKDIR=../hard
|
||||
SUBDIR=Conjunto
|
||||
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
|
||||
-v $(pwd)/$WORKDIR:/home/$USER/workdir \
|
||||
--user $USER_ID:$GROUP_ID \
|
||||
--env NO_AT_BRIDGE=1 \
|
||||
--workdir="/home/$USER" \
|
||||
--volume="/etc/group:/etc/group:ro" \
|
||||
--volume="/home/$USER/.config/kicad:/home/$USER/.config/kicad:rw" \
|
||||
--volume="/home/$USER/.cache/kicad:/home/$USER/.cache/kicad:rw" \
|
||||
--volume="/etc/passwd:/etc/passwd:ro" \
|
||||
--volume="/etc/shadow:/etc/shadow:ro" \
|
||||
setsoft/kicad_auto:latest /bin/bash -c "cd workdir/$SUBDIR; kiplot"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it setsoft/kicad_auto:latest /bin/bash
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
docker run --rm -it setsoft/kicad_auto:dev_k6 /bin/bash
|
||||
Loading…
Reference in New Issue