symlink rustc

This commit is contained in:
Brian Seymour 2019-05-31 15:34:48 -05:00
parent ae4864e7aa
commit 92bf1d3496
3 changed files with 4 additions and 2 deletions

View File

@ -4,5 +4,6 @@ mkdir -p /var/lib/lxc/piston/rootfs/exec
rm -f /var/lib/lxc/piston/rootfs/exec/* rm -f /var/lib/lxc/piston/rootfs/exec/*
cp -f executors/* /var/lib/lxc/piston/rootfs/exec cp -f executors/* /var/lib/lxc/piston/rootfs/exec
chmod 700 /var/lib/lxc/piston/rootfs/exec/* chmod 700 /var/lib/lxc/piston/rootfs/exec/*
chown -R root:root /var/lib/lxc/piston/rootfs/exec
lxc-start -n piston -d lxc-start -n piston -d

View File

@ -25,7 +25,7 @@ systemctl start libvirtd
lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64 lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64
./start ./start
# open a shell to the containr # open a shell to the container
./shell ./shell
# install all necessary piston dependencies # install all necessary piston dependencies
@ -42,6 +42,7 @@ apt-get -y install git tzdata nano \
umake swift umake swift
ln -s /root/.local/share/umake/swift/swift-lang/usr/bin/swift /usr/bin/swift ln -s /root/.local/share/umake/swift/swift-lang/usr/bin/swift /usr/bin/swift
curl https://sh.rustup.rs -sSf | sh curl https://sh.rustup.rs -sSf | sh
ln -s /root/.cargo/rustc /usr/bin/rustc
rm -rf /home/ubuntu rm -rf /home/ubuntu
chmod 777 /tmp chmod 777 /tmp
chmod 777 -R /root chmod 777 -R /root

View File

@ -1 +1 @@
print("hello") print("good")