Skip to content

Commit

Permalink
Update to Amazon Linux 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
yosukes-dev committed Jan 24, 2023
1 parent c7e783a commit fd32305
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
OUT_ZIP=Amazon2.zip
LNCR_EXE=Amazon2.exe
OUT_ZIP=AL2022.zip
LNCR_EXE=AL2022.exe

DLR=curl
DLR_FLAGS=-L
LNCR_URL=https://github.com/yuk7/wsldl/releases/download/21082800/wsldl.exe
LNCR_URL=https://github.com/yuk7/wsldl/releases/download/22020900/wsldl.exe

all: $(OUT_ZIP)

Expand Down Expand Up @@ -38,7 +38,7 @@ rootfs: base.tar

base.tar:
@echo -e '\e[1;31mExporting base.tar using docker...\e[m'
docker run --name amazonwsl library/amazonlinux:2.0.20220606.1 /bin/bash -c "yum update -y; yum install -y net-tools util-linux-ng; yum clean all; rm -rf /var/cache/yum; pwconv; grpconv; chmod 0744 /etc/shadow; chmod 0744 /etc/gshadow;"
docker run --name amazonwsl library/amazonlinux:2022.0.20221207.4 /bin/bash -c "yum update -y; yum install -y net-tools util-linux-ng; yum clean all; rm -rf /var/cache/yum; pwconv; grpconv; chmod 0744 /etc/shadow; chmod 0744 /etc/gshadow;"
docker export --output=base.tar amazonwsl
docker rm -f amazonwsl

Expand All @@ -50,4 +50,4 @@ clean:
-rm rootfs.tar.gz
-sudo rm -r rootfs
-rm base.tar
-docker rmi amazonlinux:2.0.20220606.1
-docker rmi amazonlinux:2022.0.20221207.4

0 comments on commit fd32305

Please sign in to comment.