Skip to content

Commit

Permalink
chore: move bakery to dedicated directory
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Mar 17, 2024
1 parent aeddf81 commit 0a8128c
Show file tree
Hide file tree
Showing 52 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-rugpi-bakery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile.rugpi-bakery
file: bakery/Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ needs.metadata.outputs.labels }}
push: true
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "extra"]
path = repositories/extra
url = ../rugpi-extra.git
16 changes: 8 additions & 8 deletions docker/Dockerfile.rugpi-bakery → bakery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#########################################################################################
FROM debian:latest as build-env

COPY docker/layers/build-env/00-base.sh /tmp/rugpi-docker/00-base.sh
COPY bakery/layers/build-env/00-base.sh /tmp/rugpi-docker/00-base.sh
RUN /tmp/rugpi-docker/00-base.sh

# Install Rust toolchain.
Expand All @@ -14,13 +14,13 @@ ENV RUSTUP_HOME="/usr/local/rustup" \
PATH="/usr/local/cargo/bin:${PATH}" \
RUST_VERSION="1.76.0"

COPY docker/layers/build-env/10-rust.sh /tmp/rugpi-docker/10-rust.sh
COPY bakery/layers/build-env/10-rust.sh /tmp/rugpi-docker/10-rust.sh
RUN /tmp/rugpi-docker/10-rust.sh

# Install libraries and configure for cross compilation.
ENV PKG_CONFIG_SYSROOT_DIR="/"

COPY docker/layers/build-env/20-libs.sh /tmp/rugpi-docker/20-libs.sh
COPY bakery/layers/build-env/20-libs.sh /tmp/rugpi-docker/20-libs.sh
RUN /tmp/rugpi-docker/20-libs.sh

ENV RUGPI_BUILD_ENV="true"
Expand Down Expand Up @@ -48,11 +48,11 @@ RUN cargo chef prepare --recipe-path recipe.json
FROM build-env AS builder

COPY --from=planner /project/recipe.json recipe.json
COPY docker/layers/builder/00-prepare.sh /tmp/rugpi-docker/00-prepare.sh
COPY bakery/layers/builder/00-prepare.sh /tmp/rugpi-docker/00-prepare.sh
RUN /tmp/rugpi-docker/00-prepare.sh

COPY . .
COPY docker/layers/builder/10-build.sh /tmp/rugpi-docker/10-build.sh
COPY bakery/layers/builder/10-build.sh /tmp/rugpi-docker/10-build.sh
RUN /tmp/rugpi-docker/10-build.sh


Expand All @@ -63,7 +63,7 @@ RUN /tmp/rugpi-docker/10-build.sh
#########################################################################################
FROM debian:latest AS bakery

COPY docker/layers/bakery/00-base.sh /tmp/rugpi-docker/00-base.sh
COPY bakery/layers/bakery/00-base.sh /tmp/rugpi-docker/00-base.sh
RUN /tmp/rugpi-docker/00-base.sh

RUN mkdir -p /usr/share/rugpi \
Expand All @@ -73,10 +73,10 @@ RUN mkdir -p /usr/share/rugpi \
&& mv rpi-eeprom-master rpi-eeprom \
&& rm -f rpi-eeprom-master.zip

COPY repositories /usr/share/rugpi/repositories
COPY bakery/repositories /usr/share/rugpi/repositories
COPY boot /usr/share/rugpi/boot

COPY docker/layers/bakery/10-setup.sh /tmp/rugpi-docker/10-setup.sh
COPY bakery/layers/bakery/10-setup.sh /tmp/rugpi-docker/10-setup.sh
RUN /tmp/rugpi-docker/10-setup.sh

RUN mkdir -p /usr/share/rugpi/binaries/{arm64,armhf}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion repositories/extra
Submodule extra deleted from dbd7ce
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn main() -> anyhow::Result<()> {
"-t",
"ghcr.io/silitics/rugpi-bakery:dev",
"-f",
"docker/Dockerfile.rugpi-bakery",
"bakery/Dockerfile",
"."
]
.with_stdout(Out::Inherit)
Expand Down

0 comments on commit 0a8128c

Please sign in to comment.