Skip to content

Commit

Permalink
adding the initial CNAB files
Browse files Browse the repository at this point in the history
  • Loading branch information
nunix committed Feb 12, 2019
0 parents commit 883b483
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# wslcnab
2 changes: 2 additions & 0 deletions cnab/app/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
exec /cnab/app/porter-runtime run -f /cnab/app/porter.yaml
60 changes: 60 additions & 0 deletions porter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This is the configuration for Porter
# You must define steps for each action, but the rest is optional
# Uncomment out the sections below to take full advantage of what Porter can do!

mixins:
- exec

name: WSLDISTRO
version: 0.1.0
description: "Build WSL distros from Docker containers"
invocationImage: wsl-distro:latest

install:
- description: "Export the Docker container to TAR file"
exec:
command: "/mnt/c/Program Files/Docker/Docker/Resources/bin/docker.exe"
arguments:
- export
- --output
- ./alpine.tar
- alpine

- description: "Install a new WSL distro"
exec:
command: /mnt/c/WINDOWS/system32/wsl.exe
arguments:
- --import
- "wslcustom"
- "./wslcustom"
- "./alpine.tar"

uninstall:
- description: "Uninstall a WSL distro"
exec:
command: /mnt/c/WINDOWS/system32/wsl.exe
arguments:
- --unregister
- "wslcustom"

parameters:
- name: distro_name
type: string
default: wslcustom

- name: distro_path
type: string
default: "/mnt/c/github/wslcustom"

- name: distro_source
type: string
default: "/mnt/c/github/ubuntu1904.tar"

#dependencies:
# - name: mysql
# parameters:
# database-name: wordpress

#credentials:
# - name: kubeconfig
# path: /root/.kube/config

0 comments on commit 883b483

Please sign in to comment.