Switch to a new Docker image
This commit is contained in:
parent
43436fc402
commit
b103fbb900
|
|
@ -107,7 +107,7 @@ jobs:
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ jobs:
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
check_api_docs:
|
check_api_docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
container: asterinas/asterinas:0.17.1-20260317
|
container: asterinas/asterinas:0.17.1-20260319
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
push-cachix:
|
push-cachix:
|
||||||
runs-on: ubuntu-4-cores-150GB-ssd
|
runs-on: ubuntu-4-cores-150GB-ssd
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: -v /dev:/dev --privileged
|
options: -v /dev:/dev --privileged
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
uses: maus007/docker-run-action-fork@v1
|
uses: maus007/docker-run-action-fork@v1
|
||||||
with:
|
with:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --privileged -v /dev:/dev -v ${{ github.workspace }}:/root/asterinas
|
options: --privileged -v /dev:/dev -v ${{ github.workspace }}:/root/asterinas
|
||||||
run: |
|
run: |
|
||||||
export ASTER_BUILD_TIMESTAMP=`date '+%a %b %e %H:%M:%S %Z %Y'`
|
export ASTER_BUILD_TIMESTAMP=`date '+%a %b %e %H:%M:%S %Z %Y'`
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
container: asterinas/asterinas:0.17.1-20260317
|
container: asterinas/asterinas:0.17.1-20260319
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
container: asterinas/asterinas:0.17.1-20260317
|
container: asterinas/asterinas:0.17.1-20260319
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
container: asterinas/asterinas:0.17.1-20260317
|
container: asterinas/asterinas:0.17.1-20260319
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
push-pkgs:
|
push-pkgs:
|
||||||
runs-on: ubuntu-4-cores-150GB-ssd
|
runs-on: ubuntu-4-cores-150GB-ssd
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: -v /dev:/dev --privileged
|
options: -v /dev:/dev --privileged
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
--privileged --network=host --device=/dev/kvm \
|
--privileged --network=host --device=/dev/kvm \
|
||||||
-v ./:/root/asterinas asterinas/asterinas:0.17.1-20260317 \
|
-v ./:/root/asterinas asterinas/asterinas:0.17.1-20260319 \
|
||||||
make run_kernel AUTO_TEST=vsock ENABLE_KVM=0 SCHEME=microvm RELEASE_MODE=1 &
|
make run_kernel AUTO_TEST=vsock ENABLE_KVM=0 SCHEME=microvm RELEASE_MODE=1 &
|
||||||
- name: Run Vsock Client on Host
|
- name: Run Vsock Client on Host
|
||||||
id: host_vsock_client
|
id: host_vsock_client
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
iso-test:
|
iso-test:
|
||||||
runs-on: ubuntu-4-cores-150GB-ssd
|
runs-on: ubuntu-4-cores-150GB-ssd
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: -v /dev:/dev --privileged
|
options: -v /dev:/dev --privileged
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
basic-test:
|
basic-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
full-nixos-test:
|
full-nixos-test:
|
||||||
runs-on: ubuntu-4-cores-150GB-ssd
|
runs-on: ubuntu-4-cores-150GB-ssd
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: -v /dev:/dev --privileged
|
options: -v /dev:/dev --privileged
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
uses: maus007/docker-run-action-fork@v1
|
uses: maus007/docker-run-action-fork@v1
|
||||||
with:
|
with:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --privileged -v /dev:/dev -v ${{ github.workspace }}:/root/asterinas
|
options: --privileged -v /dev:/dev -v ${{ github.workspace }}:/root/asterinas
|
||||||
run: |
|
run: |
|
||||||
make nixos NIXOS_TEST_SUITE=hello NIXOS_DISK_SIZE_IN_MB=6144
|
make nixos NIXOS_TEST_SUITE=hello NIXOS_DISK_SIZE_IN_MB=6144
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
basic-test:
|
basic-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
volumes:
|
volumes:
|
||||||
# Map the following directories on the host into the container so that
|
# Map the following directories on the host into the container so that
|
||||||
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
integration-test:
|
integration-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
volumes:
|
volumes:
|
||||||
# Map the following directories on the host into the container so that
|
# Map the following directories on the host into the container so that
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
basic-test:
|
basic-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
volumes:
|
volumes:
|
||||||
# Map the following directories on the host into the container so that
|
# Map the following directories on the host into the container so that
|
||||||
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
integration-test:
|
integration-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
volumes:
|
volumes:
|
||||||
# Map the following directories on the host into the container so that
|
# Map the following directories on the host into the container so that
|
||||||
|
|
@ -132,7 +132,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image: ['asterinas/asterinas:0.17.1-20260317', 'asterinas/osdk:0.17.1-20260317']
|
image: ['asterinas/asterinas:0.17.1-20260319', 'asterinas/osdk:0.17.1-20260319']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.image }}
|
image: ${{ matrix.image }}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
integration-test:
|
integration-test:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
container:
|
container:
|
||||||
image: asterinas/asterinas:0.17.1-20260317
|
image: asterinas/asterinas:0.17.1-20260319
|
||||||
options: --device=/dev/kvm --privileged
|
options: --device=/dev/kvm --privileged
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -59,7 +59,7 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image: ['asterinas/asterinas:0.17.1-20260317', 'asterinas/osdk:0.17.1-20260317']
|
image: ['asterinas/asterinas:0.17.1-20260319', 'asterinas/osdk:0.17.1-20260319']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.image }}
|
image: ${{ matrix.image }}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
validate_scmls:
|
validate_scmls:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
container: asterinas/asterinas:0.17.1-20260317
|
container: asterinas/asterinas:0.17.1-20260319
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Validate SCML files with sctrace
|
- name: Validate SCML files with sctrace
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ All development is done inside the project Docker container:
|
||||||
```bash
|
```bash
|
||||||
docker run -it --privileged --network=host --device=/dev/kvm -v /dev:/dev \
|
docker run -it --privileged --network=host --device=/dev/kvm -v /dev:/dev \
|
||||||
-v $(pwd)/asterinas:/root/asterinas \
|
-v $(pwd)/asterinas:/root/asterinas \
|
||||||
asterinas/asterinas:0.17.1-20260317
|
asterinas/asterinas:0.17.1-20260319
|
||||||
```
|
```
|
||||||
|
|
||||||
Key Makefile targets:
|
Key Makefile targets:
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ Follow the steps below to get Asterinas up and running.
|
||||||
2. Run a Docker container as the development environment:
|
2. Run a Docker container as the development environment:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --privileged --network=host -v /dev:/dev -v $(pwd)/asterinas:/root/asterinas asterinas/asterinas:0.17.1-20260317
|
docker run -it --privileged --network=host -v /dev:/dev -v $(pwd)/asterinas:/root/asterinas asterinas/asterinas:0.17.1-20260319
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Inside the container,
|
3. Inside the container,
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ since `distro/README.md` references them -->
|
||||||
--network=host \
|
--network=host \
|
||||||
-v /dev:/dev \
|
-v /dev:/dev \
|
||||||
-v $(pwd)/asterinas:/root/asterinas \
|
-v $(pwd)/asterinas:/root/asterinas \
|
||||||
asterinas/asterinas:0.17.1-20260317
|
asterinas/asterinas:0.17.1-20260319
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Inside the container, go to the project folder to build and run Asterinas.
|
3. Inside the container, go to the project folder to build and run Asterinas.
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ The following result is an example:
|
||||||
2. Run a Docker container as the development environment.
|
2. Run a Docker container as the development environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --privileged --network=host --device=/dev/kvm -v $(pwd)/asterinas:/root/asterinas asterinas/asterinas:0.17.1-20260317
|
docker run -it --privileged --network=host --device=/dev/kvm -v $(pwd)/asterinas:/root/asterinas asterinas/asterinas:0.17.1-20260319
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Inside the container,
|
3. Inside the container,
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ Therefore, it is recommended to use a Docker image to deploy the environment.
|
||||||
Run a TDX Docker container:
|
Run a TDX Docker container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --privileged --network=host --device=/dev/kvm asterinas/osdk:0.17.1-20260317
|
docker run -it --privileged --network=host --device=/dev/kvm asterinas/osdk:0.17.1-20260319
|
||||||
```
|
```
|
||||||
|
|
||||||
## Edit `OSDK.toml` for Intel TDX support
|
## Edit `OSDK.toml` for Intel TDX support
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue