Code Monkey home page Code Monkey logo

lakeeffect-cli's Introduction

LakeEffect OpenStack cli

This docker image is specifically for use on the UB CCR LakeEffect Cloud. This is an alternative to using the python environment as explained on the UB Help page

You will still need to use that link to set up your API Key (start from step 2)

Manual Build

Clone this repository, then:

# Build a local docker image
docker build -t plessbd/lakeeffect-cli .

Docker Hub

docker pull plessbd/lakeeffect-cli

Configuration

After building or pulling from docker hub you will need to create a env file. A sample can be found in envfile.sample

OS_PROJECT_NAME='your project name'
OS_USERNAME='your username'
OS_API_KEY='your API key'

If you work with multiple projects

Set your token (makes things faster)

By default this will always try to get a new token, this is not the best thing to do. So the following will set your token and reuse it.

NOTE: If you get errors after a while you can rerun the refresh token command and replace it in the envfile

NOTE: the following commands assume you have a scratch sub directory

docker run -it --rm -v $(pwd)/scratch:/scratch --env-file envfile plessbd/lakeeffect-cli refresh token
echo "OS_TOKEN='"`cat scratch/OS_TOKEN`"'" >> envfile

If you don't want to set this in your env file, and you always mount /scratch as long as there is a file called OS_TOKEN in there it will use that. So use as you please.

Running commands

Run one off commands using:

docker run -it --rm --env-file envfile plessbd/lakeeffect-cli openstack server list

If you are going to have to run multiple commands just drop into the shell

docker -h 'le-os' run -ti --rm --env-file envfile plessbd/lakeeffect-cli

Simplify your typing with aliases

# Get into a shell to run openstack commands
alias leshell='docker run -it --rm -v $(pwd):/scratch --env-file $(pwd)/envfile plessbd/lakeeffect-cli'
# Make it look like you're running openstack locally
alias lakeeffect='leshell openstack'

Inspiration

jmcvea

lakeeffect-cli's People

Contributors

plessbd avatar

Watchers

James Cloos 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.