Loading .github/workflows/build.yml +3 −3 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ jobs: - uses: actions/checkout@v3 - name: Create a release uses: kroese/github-release@v6 uses: action-pack/github-release@v6 env: GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} with: Loading @@ -81,7 +81,7 @@ jobs: body: "Release v${{ vars.MAJOR }}.${{ vars.MINOR }}" - name: Increment minor version uses: kroese/increment@v1 uses: action-pack/increment@v1 with: name: 'MINOR' token: ${{ secrets.REPO_ACCESS_TOKEN }} Loading @@ -97,7 +97,7 @@ jobs: fetch-depth: 0 - name: Push to Gitlab mirror uses: kroese/gitlab-sync@v2 uses: action-pack/gitlab-sync@v2 with: url: ${{ secrets.GITLAB_URL }} token: ${{ secrets.GITLAB_TOKEN }} Loading docker-compose.yml +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ services: RAM_SIZE: "512M" devices: - /dev/kvm - /dev/vhost-net cap_add: - NET_ADMIN ports: Loading readme.md +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ services: DISK_SIZE: "16G" devices: - /dev/kvm - /dev/vhost-net cap_add: - NET_ADMIN ports: Loading run/check.sh +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ set -u : ${DHCP:='N'} if [ "$DHCP" = "Y" ]; then if [[ "${DHCP}" == [Yy1]* ]]; then PORT=5555 IP="127.0.0.1" else Loading run/disk.sh +4 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ if [ -f "${DATA}" ]; then echo "INFO: Resizing data disk from $OLD_SIZE to $DATA_SIZE bytes.." if [ "$ALLOCATE" = "N" ]; then if [[ "${ALLOCATE}" == [Nn]* ]]; then # Resize file by changing its length truncate -s "${DATA_SIZE}" "${DATA}"; Loading @@ -58,7 +58,7 @@ if [ -f "${DATA}" ]; then echo "ERROR: Could not allocate a file for the virtual disk." && exit 85 fi if [ "$ALLOCATE" = "Z" ]; then if [[ "${ALLOCATE}" == [Zz]* ]]; then GB=$(( (REQ + 1073741823)/1073741824 )) Loading @@ -81,7 +81,7 @@ fi if [ ! -f "${DATA}" ]; then if [ "$ALLOCATE" = "N" ]; then if [[ "${ALLOCATE}" == [Nn]* ]]; then # Create an empty file truncate -s "${DATA_SIZE}" "${DATA}" Loading @@ -102,7 +102,7 @@ if [ ! -f "${DATA}" ]; then echo "ERROR: Could not allocate a file for the virtual disk." && exit 87 fi if [ "$ALLOCATE" = "Z" ]; then if [[ "${ALLOCATE}" == [Zz]* ]]; then echo "INFO: Preallocating ${DISK_SIZE} of diskspace, please wait..." dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes status=none Loading Loading
.github/workflows/build.yml +3 −3 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ jobs: - uses: actions/checkout@v3 - name: Create a release uses: kroese/github-release@v6 uses: action-pack/github-release@v6 env: GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} with: Loading @@ -81,7 +81,7 @@ jobs: body: "Release v${{ vars.MAJOR }}.${{ vars.MINOR }}" - name: Increment minor version uses: kroese/increment@v1 uses: action-pack/increment@v1 with: name: 'MINOR' token: ${{ secrets.REPO_ACCESS_TOKEN }} Loading @@ -97,7 +97,7 @@ jobs: fetch-depth: 0 - name: Push to Gitlab mirror uses: kroese/gitlab-sync@v2 uses: action-pack/gitlab-sync@v2 with: url: ${{ secrets.GITLAB_URL }} token: ${{ secrets.GITLAB_TOKEN }} Loading
docker-compose.yml +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ services: RAM_SIZE: "512M" devices: - /dev/kvm - /dev/vhost-net cap_add: - NET_ADMIN ports: Loading
readme.md +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ services: DISK_SIZE: "16G" devices: - /dev/kvm - /dev/vhost-net cap_add: - NET_ADMIN ports: Loading
run/check.sh +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ set -u : ${DHCP:='N'} if [ "$DHCP" = "Y" ]; then if [[ "${DHCP}" == [Yy1]* ]]; then PORT=5555 IP="127.0.0.1" else Loading
run/disk.sh +4 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ if [ -f "${DATA}" ]; then echo "INFO: Resizing data disk from $OLD_SIZE to $DATA_SIZE bytes.." if [ "$ALLOCATE" = "N" ]; then if [[ "${ALLOCATE}" == [Nn]* ]]; then # Resize file by changing its length truncate -s "${DATA_SIZE}" "${DATA}"; Loading @@ -58,7 +58,7 @@ if [ -f "${DATA}" ]; then echo "ERROR: Could not allocate a file for the virtual disk." && exit 85 fi if [ "$ALLOCATE" = "Z" ]; then if [[ "${ALLOCATE}" == [Zz]* ]]; then GB=$(( (REQ + 1073741823)/1073741824 )) Loading @@ -81,7 +81,7 @@ fi if [ ! -f "${DATA}" ]; then if [ "$ALLOCATE" = "N" ]; then if [[ "${ALLOCATE}" == [Nn]* ]]; then # Create an empty file truncate -s "${DATA_SIZE}" "${DATA}" Loading @@ -102,7 +102,7 @@ if [ ! -f "${DATA}" ]; then echo "ERROR: Could not allocate a file for the virtual disk." && exit 87 fi if [ "$ALLOCATE" = "Z" ]; then if [[ "${ALLOCATE}" == [Zz]* ]]; then echo "INFO: Preallocating ${DISK_SIZE} of diskspace, please wait..." dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes status=none Loading