Giter Club home page Giter Club logo

workspace's Introduction

Container Workspace Environment for Development, Learning, and Experimentation

This GitHub repo and Docker container contain the tools I use in my terminal-centric workspace. I use it to get a workspace quickly and to store all my custom installation information (latest Go, borderless TMUX, etc.)

By default, this image will interactively prompt for user creation information the first time it is run (with defaults). This makes it ideal for matching the exact user account I use at work and on different projects. Sometimes I bind-mount volumes and share the host network. Other times I use it as a sandbox disconnected from everything else.

Install and Run

To clone and work with the source code:

git clone --recursive [email protected]:rwxrob/workspace.git

To just sample run the image and remove when done (accept the defaults):

docker run -it --rm rwxrob/workspace

Note for any docker work you probably want to -v /var/run/docker.sock:/var/run/docker.sock, which will share the docker instance running on the host.

Installing Outside of Workspace

Some of the scripts and content in this repo can be used to install stuff outside of a workspace (on a host system).

To install latest Go binary (after having done build go):

ln -sf "$PWD/goroot" /usr/local/go

To add the Go utilities you might want to copy them to /usr/local/bin:

cp ./go/bin/* /usr/local/bin

workspace's People

Contributors

rwxrob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

workspace's Issues

Get multistage another way

FROM rwxrob/pandoc AS mypandoc
FROM rwxrob/hyperfine AS myhyperfine
FROM rwxrob/kubectl AS mykubectl

COPY --from=mypandoc /usr/bin/pandoc /usr/bin
COPY --from=myhyperfine /usr/bin/hyperfine /usr/bin
COPY --from=mykubectl /usr/bin/kubectl /usr/bin

Update entrypoint to recognize ws workspace config

The dot/scripts/ws script now mounts a user directory in /home, which
means that username, userid, groupname, and group id can all be inferred
from it by simply finding the first user (and only) user in /home.

Add RUN section optimizer to build before push

Having a bunch of RUN statements in Dockerfile is an anti-pattern when
thinking of cloud deployments because of the number of overlays (and
bloat) it creates in the final image. However, it is far easier to
create a Dockerfile with multiple RUN statements during development.

Move all installers back to dotfiles

While it is nice to have all the installers here, sometimes I need to
install something that doesn't have Docker already on it. For example,
when just running from within WSL2.

User home Directory prompt doesnt take in input

When running the docker run, upon entering the entrypoint script when asked for username etc. I tried to modify home directory from /home/you to another directory the script didn't update the home directory name and i am greeted with the home directory still being /home/you.

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.