-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 new landing page, CI build, simplified structure and getting starte…
…d guide - add landing page #2 - enable GitHub pages #3 - flatten out the docs/docs structure #4 - add getting started guide as the first tutorial #5
- Loading branch information
Showing
38 changed files
with
1,566 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Build website | ||
run: yarn build | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test deployment | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test-deploy: | ||
name: Test deployment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Test build website | ||
run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,64 @@ | ||
# SoftPack | ||
|
||
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. | ||
**SoftPack** is an open-source software packaging platform for any operating | ||
system where Docker or Singularity are supported. | ||
|
||
### Installation | ||
SoftPack is primarily aimed at scientific research community where running a | ||
stable yet flexible research software environment is a necessity. It is not | ||
uncommon for researchers to require their environments to be shared with other | ||
members of their team, either locally or across organizations. | ||
|
||
``` | ||
$ yarn | ||
``` | ||
A number of software packaging solutions already exist and generally work well | ||
when the number of dependencies remains manageable and the research environment | ||
either doesn't change very often or doesn't need to be shared with others, | ||
or both. | ||
|
||
### Local Development | ||
- [Conda](https://docs.conda.io/en/latest/) (and its reimplementation | ||
[Mamba](https://mamba.readthedocs.io/en/latest)) are the de-facto standard for | ||
python based scientific computing in single user environments. | ||
|
||
``` | ||
$ yarn start | ||
``` | ||
- [venv](https://docs.python.org/3/library/venv.html) combined with | ||
[Pip](https://pip.pypa.io/en/stable) or especially [Poetry](https://python-poetry.org) | ||
offer an excellent option for python package development but are limited elsewhere. | ||
|
||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | ||
- For R users, [renv](https://rstudio.github.io/renv/articles/renv.html) has | ||
superceded the now out-dated [packrat](https://rstudio.github.io/packrat/) and | ||
is a great option for managing different versions of a package or even different | ||
versions of R, but its utility is limited outside of R. | ||
|
||
### Build | ||
- Other solutions like [Nix](https://nixos.org), [Guix](https://guix.gnu.org) or | ||
[Spack](https://spack.io) offer some promise but generally require higher | ||
levels of maintenance and administration for the end-user to tackle on their | ||
own. | ||
|
||
``` | ||
$ yarn build | ||
``` | ||
- [Docker](https://www.docker.com), [Singularity](https://docs.sylabs.io/), and | ||
[Podman](https://podman.io) offer unmatched stability and reproducibility by | ||
- using containerization but with the added cost of steeper learning curve. | ||
|
||
This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
- A number of home-grown tools have surfaced over the years but no solution | ||
offers stability, flexibility and ease of use in a multi-user shareable | ||
environment. | ||
|
||
### Deployment | ||
SoftPack attempts to overcome the shortcomings of previous efforts, not by | ||
reinventing the wheel, but by leveraging the strengths of some of the packaging | ||
solutions listed above and offering flexible multi-user environments with the | ||
stability of containers necessary for reproducible research. | ||
|
||
Using SSH: | ||
SoftPack is more than just a package management tool, as it offers managed | ||
multi-user software environments and administration tools for creating, | ||
managing, and discovering shareable environments. Under the hood, SoftPack uses | ||
[Spack](https://spack.io), | ||
[renv](https://rstudio.github.io/renv/articles/renv.html), | ||
[Docker](https://www.docker.com), and [Singularity](https://docs.sylabs.io/) | ||
but without exposing the complexities of the underlying technology to the | ||
end-user. | ||
|
||
``` | ||
$ USE_SSH=true yarn deploy | ||
``` | ||
|
||
Not using SSH: | ||
## Requirements | ||
|
||
``` | ||
$ GIT_USER=<Your GitHub username> yarn deploy | ||
``` | ||
|
||
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. | ||
SoftPack runs on any POSIX-compliant operating system including any | ||
distribution of Linux, FreeBSD, and macOS. SoftPack also supports virtual | ||
machine environments including VirtualBox, Vagrant and VMware, provided the | ||
operating system running on the virtual machine supports Docker or Singularity. | ||
SoftPack has been tested on OpenStack and will support Google Cloud | ||
Platform (GCP) and Amazon Web Services (AWS). |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.