-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Docker Image for kicad Signed-off-by: Masaya Kataoka <[email protected]> * fix composite action Signed-off-by: Masaya Kataoka <[email protected]> * update Dockerfile Signed-off-by: Masaya Kataoka <[email protected]> * add README Signed-off-by: Masaya Kataoka <[email protected]> * update README.md Signed-off-by: Masaya Kataoka <[email protected]> * update description Signed-off-by: Masaya Kataoka <[email protected]> --------- Signed-off-by: Masaya Kataoka <[email protected]>
- Loading branch information
1 parent
083edc1
commit dfd76e7
Showing
8 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM linuxserver/kicad:8.0.1 | ||
|
||
ENV KICAD8_3DMODEL_DIR="/usr/share/kicad/3dmodels/" | ||
ENV KICAD8_FOOTPRINT_DIR="/usr/share/kicad/footprints/" | ||
ENV KICAD8_SYMBOL_DIR="/usr/share/kicad/symbols/" | ||
|
||
RUN mkdir kicad_libraries | ||
WORKDIR /kicad_libraries | ||
ADD https://github.com/ncarandini/KiCad-RP-Pico/archive/refs/heads/main.zip KiCad-RP-Pico.zip | ||
RUN unzip KiCad-RP-Pico.zip | ||
|
||
RUN cp -r "/kicad_libraries/KiCad-RP-Pico-main/RP-Pico Libraries/Pico.wrl" ${KICAD8_3DMODEL_DIR} | ||
RUN cp -r "/kicad_libraries/KiCad-RP-Pico-main/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.pretty" ${KICAD8_FOOTPRINT_DIR} | ||
RUN cp -r "/kicad_libraries/KiCad-RP-Pico-main/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.kicad_sym" ${KICAD8_SYMBOL_DIR} | ||
|
||
WORKDIR / | ||
|
||
COPY autostart /defaults/autostart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Docker container for OUXT Polaris circuit development | ||
|
||
## WHat is it? | ||
|
||
This image is based on [this docker image](https://docs.linuxserver.io/images/docker-kicad/). | ||
This image contains kicad library which is necessary for circuit development. | ||
You do not need to install library manually. | ||
|
||
## Software versions | ||
|
||
KiCAD 8.0.1 | ||
|
||
## KiCAD Library | ||
|
||
- [KiCad-RP-Pico](https://github.com/ncarandini/KiCad-RP-Pico) | ||
|
||
## How to use | ||
|
||
```bash | ||
git clone https://github.com/OUXT-Polaris/ouxt_automation | ||
cd ouxt_automation/circuits | ||
sh start_kicad.sh | ||
``` | ||
|
||
Open [http://localhost:3000/](http://localhost:3000/) | ||
|
||
![kicad](./kicad.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "Build kicad image action" | ||
description: "Build Kicad docker image for circuit development" | ||
|
||
inputs: | ||
docker_username: | ||
description: "Username for Dockerhub" | ||
required: true | ||
docker_password: | ||
description: "Password for Dockerhub" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ inputs.docker_username }} | ||
password: ${{ inputs.docker_password }} | ||
- name: Build and Push Docker Image | ||
if: ${{ github.event_name != 'pull_request'}} | ||
uses: docker/build-push-action@v2 | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
with: | ||
username: ${{ inputs.docker_username }} | ||
password: ${{ inputs.docker_password }} | ||
context: ./.github/workflows/docker/kicad | ||
file: ./.github/workflows/docker/kicad/Dockerfile | ||
tags: wamvtan/kicad:latest | ||
no-cache: false | ||
cache-from: type=registry,ref=wamvtan/kicad:buildcache | ||
cache-to: type=registry,ref=wamvtan/kicad:buildcache,mode=max | ||
push: true | ||
- name: Build Docker Image | ||
if: ${{ github.event_name == 'pull_request'}} | ||
uses: docker/build-push-action@v2 | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
with: | ||
username: ${{ inputs.docker_username }} | ||
password: ${{ inputs.docker_password }} | ||
context: ./.github/workflows/docker/kicad | ||
file: ./.github/workflows/docker/kicad/Dockerfile | ||
tags: wamvtan/kicad:latest | ||
no-cache: false | ||
cache-from: type=registry,ref=wamvtan/kicad:buildcache | ||
push: false | ||
- uses: peter-evans/dockerhub-description@v3 | ||
if: ${{ github.event_name == 'pull_request'}} | ||
with: | ||
username: ${{ inputs.docker_username }} | ||
password: ${{ inputs.docker_password }} | ||
repository: wamvtan/kicad | ||
short-description: "Docker Image for Virtual RobotX Challenge" | ||
readme-filepath: ./.github/workflows/docker/kicad/README.md | ||
enable-url-completion: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kicad |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
docker run \ | ||
--rm \ | ||
--name=kicad \ | ||
--security-opt seccomp=unconfined `#optional` \ | ||
-e PUID=1000 \ | ||
-e PGID=1000 \ | ||
-e TZ=Etc/UTC \ | ||
-p 3000:3000 \ | ||
-p 3001:3001 \ | ||
wamvtan/kicad:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters