Giter Site home page Giter Site logo

Comments (3)

ptrsr avatar ptrsr commented on August 21, 2024

Hi @andrewcooke , you probably have to change the dockerfile contents slightly (shouldn't be too difficult). Right now it uses two environment variables to download and extract the buster image. I noticed that the OpenSUSE images are provided as .raw.xz. I am not familiar with that extension, although I believe it should be usable. You may have to remove the unzip step in the dockerfile and change it to something else. After that you should build the image yourself using docker build. This may take an hour or two.

Let me know if you need help with the coding part. Good luck!

from pi-ci.

ptrsr avatar ptrsr commented on August 21, 2024

Before I forget, there is one issue that comes to mind when using a different OS, and that is the Ansible configuration. Right now, you can find the following lines in the dockerfile:

# Copy setup configuration
RUN mkdir -p /mnt/root/usr/local/lib/systemd/system
COPY src/setup.service /mnt/root/usr/local/lib/systemd/system/
COPY src/setup.sh /mnt/root/usr/local/bin/
RUN ln -rs /mnt/root/usr/local/lib/systemd/system/setup.service /mnt/root/etc/systemd/system/multi-user.target.wants
RUN ln -rs /mnt/root/lib/systemd/system/systemd-time-wait-sync.service /mnt/root/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service
RUN rm mnt/root/etc/systemd/system/timers.target.wants/apt-daily*
RUN ln -rs /mnt/root/dev/null /mnt/root/etc/systemd/system/[email protected]

You may want to comment out this section, as it installs Ansible using apt-get in a startup script.

Additionally, you may want to remove the section

# Update system and install Ansible
RUN qemu-system-aarch64 \
   -M raspi3 \
   -m 1G \
   -smp 4 \
   -sd $BASE_DIR/$IMAGE_FILE_NAME \
   -kernel $BASE_DIR/$KERNEL_FILE_NAME \
   -dtb $BASE_DIR/$DTB_FILE_NAME \
   -nographic -no-reboot \
   -device usb-net,netdev=net0 -netdev user,id=net0 \
   -append "rw console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootdelay=1 loglevel=2 modules-load=dwc2,g_ether" \
   2> /dev/null

As this runs the emulator once for installing Ansible (which you may not want / need).

from pi-ci.

andrewcooke avatar andrewcooke commented on August 21, 2024

Oh, yes, ARG DISTRO_IMG (and co). OK, thanks I will give this a try and report back. Thanks!

from pi-ci.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.