Giter Site home page Giter Site logo

autamus / chef-wasm Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.2 MB

A web interface to generate Dockerfile's for custom container images. Chef Autamus at your service!

Home Page: https://autamus.io/chef-wasm/

Makefile 7.22% Go 92.78%
spack autamus docker container

chef-wasm's Introduction

Chef wasm

Chef wasm uses https://github.com/autamus/chef in order to generate a web interface to create a Dockerfile. Chef Autamus at your service!

docs/img/chef-stash.png

This is an ideal approach if you want to use spack packages but you don't want to wait for them to build (which can take forever!). Autamus containers can dump them easily into a spack install. Note that since we are combining multiple containers, there may be issues that arise! This is early in development and experimental. Please open an issue if you have any trouble.

Usage

1. Interface

Browse to the interface at https://autamus.io/chef-wasm/ and then select the software packages (and versions) that you want to install! Since this is spack, you are totally allowed to install different versions of things.

docs/img/chef-wasm.png

Once you have your Dockerfile, click the "Download" button to save it!

2. Build

On your local machine, you can build! It's recommended to use DOCKER_BUILDKIT for faster builds.

export DOCKER_BUILDKIT=1
$ docker build -t chef-stack .

You might want to save the Dockerfile to version control if desired, or build with a CI recipe. This might be desired if you eventually want to pull down to a Singularity or Podman container on an HPC resource. Please open an issue if you would like a CI example added to this repository.

3. Interact

When you shell into your container, you will be in the spack root.

$ docker run -it chef-stack
# /opt/spack

And spack is available to you!

# which spack
/opt/spack/bin/spack

To see your installed software, use spack find

And then to load any particular piece of software (meaning it gets added to your path):

# setup your environment
$ . /opt/spack/share/spack/setup-env.sh

# load Python
root@62b0820b3524:/opt/spack# spack load [email protected]

# Did we load it?
root@62b0820b3524:/opt/spack# which python
/opt/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/python-3.9.5-kykqwyent2svlspsvehqpu4xdgcp54z5/bin/python

/opt/spack# python --version
Python 3.9.5

That's it!

Development

You'll first need to generate a chef.wasm file under docs.

$ make

You can then deploy this on GitHub pages, or run a local webserver.

$ cd docs
$ python -m http.server 9999

chef-wasm's People

Contributors

vladdoster avatar vsoch avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.