forked from canonical/rockcraft
-
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
1 parent
6338d4d
commit 83ed53f
Showing
35 changed files
with
72 additions
and
72 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
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 |
---|---|---|
|
@@ -63,17 +63,17 @@ class InitCommand(AppCommand): | |
|
||
_INIT_TEMPLATE_YAML = textwrap.dedent( | ||
"""\ | ||
name: my-rock-name # the name of your ROCK | ||
base: [email protected] # the base environment for this ROCK | ||
name: my-rock-name # the name of your rock | ||
base: [email protected] # the base environment for this rock | ||
version: '0.1' # just for humans. Semantic versioning is recommended | ||
summary: Single-line elevator pitch for your amazing ROCK # 79 char long summary | ||
summary: Single-line elevator pitch for your amazing rock # 79 char long summary | ||
description: | | ||
This is my my-rock-name's description. You have a paragraph or two to tell the | ||
most important story about it. Keep it under 100 words though, | ||
we live in tweetspace and your description wants to look good in the | ||
container registries out there. | ||
license: GPL-3.0 # your application's SPDX license | ||
platforms: # The platforms this ROCK should be built on and run on | ||
platforms: # The platforms this rock should be built on and run on | ||
amd64: | ||
parts: | ||
|
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: bare-base-test | ||
version: latest | ||
summary: A tiny ROCK | ||
description: Building a tiny ROCK from a bare base, with just one package | ||
summary: A tiny rock | ||
description: Building a tiny rock from a bare base, with just one package | ||
license: Apache-2.0 | ||
build-base: [email protected] | ||
base: bare | ||
|
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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: clean | ||
base: [email protected] | ||
version: '0.1' | ||
summary: A minimal hello world ROCK | ||
description: A minimal hello world ROCK | ||
summary: A minimal hello world rock | ||
description: A minimal hello world rock | ||
license: GPL-3.0 | ||
platforms: | ||
amd64: | ||
|
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: entrypoint-service-test | ||
version: latest | ||
base: [email protected] | ||
summary: A ROCK with an entrypoint-service field | ||
description: A ROCK with an entrypoint-service field | ||
summary: A rock with an entrypoint-service field | ||
description: A rock with an entrypoint-service field | ||
license: Apache-2.0 | ||
entrypoint-service: test-service | ||
services: | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: environment-test | |
version: latest | ||
base: [email protected] | ||
summary: Environment | ||
description: A ROCK with an environment but no real purpose | ||
description: A rock with an environment but no real purpose | ||
license: Apache-2.0 | ||
environment: | ||
FOO: bar | ||
|
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: placeholder-name | ||
base: [email protected] | ||
version: '0.1' | ||
summary: A ROCK with an invalid name | ||
description: A ROCK with an invalid name | ||
summary: A rock with an invalid name | ||
description: A rock with an invalid name | ||
license: GPL-3.0 | ||
platforms: | ||
amd64: | ||
|
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
summary: check that invalid ROCK names are blocked | ||
summary: check that invalid rock names are blocked | ||
|
||
execute: | | ||
for name in a_a a@a a--a aa- | ||
do | ||
sed "s/placeholder-name/$name/" rockcraft.orig.yaml > rockcraft.yaml | ||
rockcraft pack 2>&1 >/dev/null | MATCH "Invalid name for ROCK" | ||
rockcraft pack 2>&1 >/dev/null | MATCH "Invalid name for rock" | ||
done |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
summary: Build ROCKs with Python 3.6 with bases bare and [email protected] | ||
summary: Build rocks with Python 3.6 with bases bare and [email protected] | ||
environment: | ||
BASE/base_2004: "[email protected]" | ||
BASE/bare: "bare" | ||
|
@@ -10,7 +10,7 @@ execute: | | |
grep placeholder-base rockcraft.orig.yaml | ||
sed "s/placeholder-base/$BASE/" rockcraft.orig.yaml > rockcraft.yaml | ||
# Build the ROCK & load it into docker | ||
# Build the rock & load it into docker | ||
run_rockcraft pack | ||
ROCK=$(ls ./*.rock) | ||
sudo /snap/rockcraft/current/bin/skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:${IMAGE} | ||
|
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
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
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
Oops, something went wrong.