This repo provides a PoC of an extension that provides the ability to create a container image graphically.
If you wish to try out the latest version of the extension, you can run:
docker extension install mikesir87/image-builder-extension
If you wish to build and use the latest version yourself, you can run make install-extension
.
To help with demos for the extension, we've included a simple Node app in the example-app
directory. With this, you can open the extension and do the following:
- Use a Node base image (such as
node:lts-alpine
) - Select the
example-app
directory as the host directory - Create a new
/app
directory in your new container - Copy the
package.json
andyarn.lock
files into the container - Run
yarn install
to install all of the app dependencies - Copy the
src
directory into the container
Snag your Dockerfile and you're good to go! Eventually, we can provide the ability to save the Dockerfile or build the image. But, we're not there yet.
You can simply run make dev-up
, which will do the following:
- Builds and installs the extension.
- Starts a container that runs React in dev mode (documented in
docker-compose.yaml
). - Configures the extension to enable both the dev tools and use the React container as the UI source.
When you're done, simply run make dev-down
.