-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nunix
committed
Feb 12, 2019
0 parents
commit 883b483
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# wslcnab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |