Skip to content
Closed
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
2 changes: 2 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Ideally, you should be installing `ostree` from streams like
track ostree's git master. This allows you to not have to worry about using
libostree APIs that are not yet released.

For more details on how tests are structured, see [tests/README.md](tests/README.md).

Testing with a custom libdnf
============================

Expand Down
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

Vagrant.configure(2) do |config|

config.vm.box = "centosah/7alpha"
config.vm.box_url = 'https://ci.centos.org/artifacts/sig-atomic/centos-continuous/images-alpha/cloud/latest/images/centos-atomic-host-7-vagrant-libvirt.box'
# TODO: switch to the Fedora 30 CoreOS vagrant box once available
Comment thread
rfairley marked this conversation as resolved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f30 vagrant box is available now

config.vm.box = "fedora/29-atomic-host"

config.vm.hostname = "centosah-dev"
config.vm.hostname = "fedoraah-dev"

config.vm.define "vmcheck" do |vmcheck|
end
Expand Down
28 changes: 22 additions & 6 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,44 @@ Developing using Docker + Vagrant
---------------------------------

The current tooling here is oriented towards
doing builds inside a CentOS 7 pet container,
doing builds inside a Fedora 29 pet container,
with Vagrant on the host.

You should share the git working directory with the c7 container.
You should share the git working directory with the f29 container.
Assuming you have git repositories stored in `/srv`, something like:

```
docker run --name c7dev --privileged -v /srv:/srv --net=host -ti centos bash
podman run --name f29dev --privileged -v /srv:/srv --net=host -ti registry.fedoraproject.org/fedora:29 bash
```

You can start the Vagrant box. To work around "fuse-sshfs" not
being built into the Vagrant box, do something like this:

```
vagrant up ; vagrant provision; vagrant halt; vagrant up
vagrant up; vagrant provision; vagrant halt; vagrant up
```

Now, once you do a build inside the c7dev container, like:
Note to run `vagrant` as non-root, you'll need to either
[add your user to the `libvirt` group, or configure polkit](https://github.com/projectatomic/rpm-ostree/issues/49#issuecomment-478091562).

If working under the `/srv` directory, you should first do
`sudo chown -R <your-user> /srv/path/to/rpm-ostree/` on your host so
that rootless `vagrant` can write there.

Before building, you may need to install the build dependencies in the
f29dev container. A quick way to do this is:

```
ci/installdeps.sh
```

Now, run autoreconf inside the f29dev container:

```
./autogen.sh CFLAGS='-ggdb -O0' --prefix=/usr --libdir=/usr/lib64 --enable-installed-tests --enable-gtk-doc
```

To sync over and install the built binaries:
To sync over and install the built binaries to the Vagrant VM:

```
make vmsync
Expand All @@ -36,3 +50,5 @@ You may also want to use `vmcheck`, like this:
```
make vmoverlay && make vmcheck
```

Also see [HACKING.md](../HACKING.md).
41 changes: 0 additions & 41 deletions vagrant/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,6 @@
cmd: 'passwd -u root && touch /root/.unlocked'
creates: /root/.unlocked

- copy:
dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
content: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)

mQINBFKuaIQBEAC1UphXwMqCAarPUH/ZsOFslabeTVO2pDk5YnO96f+rgZB7xArB
OSeQk7B90iqSJ85/c72OAn4OXYvT63gfCeXpJs5M7emXkPsNQWWSju99lW+AqSNm
jYWhmRlLRGl0OO7gIwj776dIXvcMNFlzSPj00N2xAqjMbjlnV2n2abAE5gq6VpqP
vFXVyfrVa/ualogDVmf6h2t4Rdpifq8qTHsHFU3xpCz+T6/dGWKGQ42ZQfTaLnDM
jToAsmY0AyevkIbX6iZVtzGvanYpPcWW4X0RDPcpqfFNZk643xI4lsZ+Y2Er9Yu5
S/8x0ly+tmmIokaE0wwbdUu740YTZjCesroYWiRg5zuQ2xfKxJoV5E+Eh+tYwGDJ
n6HfWhRg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7DBbUru33CQMGKZ3Evt
RjsC7FDbL017qxS+ZVA/HGkyfiu4cpgV8VUnbql5eAZ+1Ll6Dw==
=hdPa
-----END PGP PUBLIC KEY BLOCK-----

- name: Add repository
yum_repository:
name: epel
description: EPEL YUM repo
mirrorlist: 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
gpgcheck: yes
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

- command: rpm -q fuse-sshfs
register: rpmq_fuse_sshfs
changed_when: False
Expand Down