balena-cloud-apps 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes CHANGED
@@ -1,4 +1,5 @@
1
1
  # Auto detect text files and perform LF normalization
2
2
  * text=auto
3
3
  *.sh text eol=lf
4
+ *.env text eol=lf
4
5
  core.symlinks=true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-cloud-apps",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Shell scripts package to the containers native interface BalenaOS for the Raspberry Pi.",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -10,6 +10,7 @@
10
10
  "test": "cd test && ./build-test.sh && exit 0"
11
11
  },
12
12
  "bin": {
13
+ "clone_project": "vendor/cni/clone_project.sh",
13
14
  "auto_reboot": "vendor/cni/auto_reboot.sh",
14
15
  "balena_deploy": "vendor/cni/balena_deploy.sh",
15
16
  "docker_build": "vendor/cni/docker_build.sh",
@@ -0,0 +1 @@
1
+ /mnt/c/Users/FORMATEUR/Documents/GitHub/balena-cloud-apps/test/build/common.env
@@ -0,0 +1 @@
1
+ /mnt/c/Users/FORMATEUR/Documents/GitHub/balena-cloud-apps/test/build/common.env
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env bash
2
+
3
+ [ "$#" = 0 ] && printf "Usage: %s <up-directory-path>\n" "$0" && exit 0
4
+ PACKAGE_DIR="$1"
5
+
6
+ [ ! -d "$PACKAGE_DIR/deployment" ] && "Directory not found $PACKAGE_DIR/deployment!\n" && exit 1
7
+ printf "Extracting the Balena Cloud project files in %s...\n" "$(pwd)/deployment"
8
+ sleep 1
9
+ cp -Rv "$PACKAGE_DIR"/deployment .
10
+
11
+ cp -v "$PACKAGE_DIR"/*.env .
12
+
13
+ printf "Templating Docker and Compositing files...\n"
14
+ sleep 1
15
+ cp -v docker-compose.yml docker-compose.template
16
+ cp -v Dockerfile Dockerfile.template
17
+
18
+ printf "Copying deploy.sh file...\n"
19
+ sleep 1
20
+ cp -v "$PACKAGE_DIR"/deploy.sh .
21
+
22
+ printf "Processing files done.\n"
23
+
24
+ printf "Installing dependency balena-cloud-apps must be installed in version 19 !!\n"
25
+ sleep 1
26
+ if [[ "$(command -v npm)" > /dev/null ]]; then
27
+ npm link balena-cloud-apps && npm update
28
+ else
29
+ printf "NPMJS node not found,\n"
30
+ sleep 1
31
+ nvm install 19
32
+ fi
33
+
34
+ printf "You're ready to use balena-cloud-apps on this project, run ./deploy.sh !\n"