User Tools

Site Tools


qa:testing_a_tarball

Testing a tarball

This page is mainly intended for members of a release team who want to verify that they have built a tarball that will work for users. It could also be used by anybody else who wants to make sure a particular Evergreen tarball will work.

Using docker or podman

A huge thanks to Blake for creating this docker workflow!

  1. Make sure that docker (or podman, if you prefer) and git are installed on your computer.
  2. cd eg-docker/generic-tarball
  3. Copy the tarball you wish to test into this generic-tarball directory.
  4. Edit the vars.yml file. There is a line that says evergreen_version. Change this version to match the Evergreen version of your tarball.
  5. docker build –add-host public.localhost:127.0.1.2 –add-host public:127.0.1.2 –add-host private.localhost:127.0.1.3 –add-host private:127.0.1.3 . -t eg :tarball-testing (this will take several minutes)
  6. docker run -it -p 80:80 -p 443:443 -p 210:210 -p 6001:6001 -p 32:22 -p 5433:5432 -h app.evergreen.com –name my-testing-eg-tarball eg:tarball-testing (this will also take several minutes)
  7. In your browser, go to http://localhost and confirm that the public catalog and staff catalog are working
  8. In a new terminal window, run the automated tests with docker exec -it my-testing-eg-tarball ansible-playbook -e hosts=127.0.0.1 /egconfigs/run_tests.yml. It will give a short report at the end. ok, changed, skipped, and ignored items are expected, but failed means that one or more of our automated tests failed on the copy of the code within your tarball, which likely merits further investigation. Try running that test by itself to try to isolate the issue.
  9. In your first terminal window, press Ctrl+C to stop the docker container.
  10. docker rm my-testing-eg-tarball
qa/testing_a_tarball.txt · Last modified: 2024/09/26 15:56 by sandbergja

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.