-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
125 additions
and
235 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,5 +1 @@ | ||
.vagrant | ||
code | ||
package.box | ||
containers-lab*.box | ||
__pycache__ |
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,20 @@ | ||
build: | ||
cat container-lab.yaml | limactl create --name=container-lab-vm - | ||
|
||
start: | ||
limactl start container-lab-vm | ||
|
||
shell: | ||
limactl shell container-lab-vm | ||
|
||
stop: | ||
limactl stop container-lab-vm | ||
|
||
delete: | ||
limactl delete container-lab-vm | ||
|
||
playbook: | ||
ansible-playbook -v --inventory "localhost," --connection=local playbook.yaml | ||
cp vm-resources/container-socket.service /etc/systemd/system/container-socket.service | ||
systemctl enable container-socket.service | ||
systemctl start container-socket.service |
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 was deleted.
Oops, something went wrong.
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,40 @@ | ||
# SPDX-FileCopyrightText: Florian Wilhelm | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Based on the examples by Akihiro Suda and the lima contributors, see https://github.com/lima-vm/lima, distributed under Apache-2.0 license | ||
|
||
images: | ||
- location: "https://cloud.debian.org/images/cloud/trixie/daily/latest/debian-13-genericcloud-amd64-daily.qcow2" | ||
arch: "x86_64" | ||
- location: "https://cloud.debian.org/images/cloud/trixie/daily/latest/debian-13-genericcloud-arm64-daily.qcow2" | ||
arch: "aarch64" | ||
|
||
mounts: | ||
- location: "~" | ||
- location: "/tmp/lima" | ||
writable: true | ||
|
||
provision: | ||
- mode: system | ||
script: | | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update | ||
apt-get -y install git jq python3-pip python-is-python3 ansible python3-pytest | ||
- mode: user | ||
script: | | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
curl https://raw.githubusercontent.com/fwilhe2/lima-vms/main/provision.sh | bash | ||
mkdir -p code; cd code | ||
ssh: | ||
localPort: 44444 | ||
loadDotSSHPubKeys: true | ||
|
||
containerd: | ||
system: false | ||
user: false |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.