-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and push image with `kbplacer` added to `-primary` image. Added test for double check if it is working in container as well. Push only from `master` branch.
- Loading branch information
Showing
2 changed files
with
32 additions
and
16 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
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
FROM admwscki/kicad-kbplacer-primary:6.0-lunar | ||
|
||
RUN useradd --create-home --shell /bin/bash kicad \ | ||
RUN userdel -r ubuntu | ||
|
||
ARG UID=1000 | ||
ARG GID=1000 | ||
RUN groupadd -g $GID -o kicad \ | ||
&& useradd -u $UID -g $GID --create-home --shell /bin/bash kicad \ | ||
&& usermod -m -d /kicad kicad | ||
|
||
USER kicad | ||
WORKDIR /kicad | ||
|
||
RUN mkdir -p /kicad/.local/share/kicad/6.0/3rdparty/plugins/ | ||
COPY --chown=kicad:kicad kbplacer/ /kicad/.local/share/kicad/6.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/ | ||
ARG PLUGINS_PATH=/kicad/.local/share/kicad/6.0/3rdparty/plugins | ||
RUN mkdir -p $PLUGINS_PATH | ||
COPY --chown=kicad:kicad kbplacer/ $PLUGINS_PATH/com_github_adamws_kicad-kbplacer/ | ||
|
||
ENV PYTHONPATH "${PYTHONPATH}:${PLUGINS_PATH}" |