Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-ci.