Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare Vagrant instead of devcontainer for platforms other than linux. #100

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .devcontainer/Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions .devcontainer/devcontainer.json

This file was deleted.

4 changes: 0 additions & 4 deletions .devcontainer/scripts/init.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .devcontainer/scripts/setup_test.sh

This file was deleted.

34 changes: 0 additions & 34 deletions .devcontainer/scripts/test.sh

This file was deleted.

15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ youki is not at the practical stage yet. However, it is getting closer to practi
# Getting Started

Local build is only supported on linux.
For other platforms, please use the devcontainer that we prepared.
For other platforms, please use [Vagrantfile](#setting-up-vagrant) that we prepared.

## Requires

Expand Down Expand Up @@ -105,6 +105,19 @@ $ git submodule update --init --recursive
$ ./integration_test.sh
```

### Setting up Vagrant
You can try youki on platforms other than linux by using the Vagrantfile we have prepared.

```
$ git clone [email protected]:containers/youki.git
$ cd youki
$ vagrant up
$ vagrant ssh
# in virtual machine
$ cd youki # in virtual machine
$ ./build.sh
```

# Community

We also have an active [Discord](https://discord.gg/h7R3HgWUct) if you'd like to come and chat with us.
Expand Down
21 changes: 21 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "fedora/33-cloud-base"
config.vm.synced_folder '.', '/vagrant', disabled: true

config.vm.provision "shell", inline: <<-SHELL
set -e -u -o pipefail
yum install -y git gcc docker
grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
service docker start
SHELL

config.vm.provision "shell", privileged: false, inline: <<-SHELL
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "export PATH=$PATH:$HOME/.cargo/bin" >> ~/.bashrc

git clone https://github.com/containers/youki
tsturzl marked this conversation as resolved.
Show resolved Hide resolved
SHELL
end