Skip to content

Commit 78c5bfd

Browse files
committed
fix: typo in newt-init.yaml
1 parent 9ec116f commit 78c5bfd

File tree

4 files changed

+50
-4
lines changed

4 files changed

+50
-4
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ repository-code: "https://github.com/caltechlibrary/cloud-init-examples"
1010
type: software
1111
version: 0.0.7
1212
license-url: "https://caltechlibrary.github.io/cloud-init-examples/LICENSE"
13-
date-released: 2024-03-07
13+
date-released: 2024-03-08

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"codeRepository": "https://github.com/caltechlibrary/cloud-init-examples",
66
"dateCreated": "2022-04-25",
77
"dateUpdated": "2023-05-12",
8-
"dateModified": "2024-03-08",
8+
"dateModified": "2024-04-10",
99
"releaseNotes": "renamed newstack-init.yaml to newt-stack.yaml, bump versions",
1010
"issueTracker": "https://github.com/caltechlibrary/cloud-init-examples/issues",
1111
"name": "cloud-init-examples",
12-
"version": "0.0.7",
12+
"version": "0.0.8",
1313
"description": "This is a collection of Bash scripts and cloud-init YAML files to be used with multipass for generating virtual machines useful for software development in libraries and archives.",
1414
"developmentStatus": "concept",
1515
"programmingLanguage": [

newt-init.yaml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,45 @@
5656
# 8. 08-add-newt.bash, downloads Solr 9.5.0 and installs it from a tar ball.
5757
#
5858
write_files:
59+
- content: |
60+
#!/bin/bash
61+
cat <<EOT
62+
63+
Weclome to the Newt Machine. You can
64+
access if with
65+
66+
multipass shell newt-machine
67+
68+
You can then run one or more additional
69+
configuration scripts to add additional
70+
software for development.
71+
72+
00-menu-of-scripts.bash (displays this help page)
73+
01-setup-scripts.bash
74+
02-add-python-packages.bash
75+
03-add-go-and-caltechlibrary-tools.bash
76+
04-ghcup-install.bash
77+
05-pandoc-build.bash
78+
06-postgrest-build.bash
79+
07-add-opensearch.bash
80+
08-add-solr.bash
81+
82+
The first and second ones are needed for
83+
Newt Projects. The rest are optional
84+
85+
You can grant yourself SSH access with the following
86+
command when you connect using multipass shell.
87+
88+
ssh-keygen
89+
curl -L -o - https://github.com/${USER}.keys \
90+
>>.ssh/authorized_keys
91+
92+
This is handy so you can setup port forward for local
93+
services like.
94+
EOT
95+
path: /usr/local/sbin/00-menu-of-scripts.bash
96+
owner: root:root
97+
permissions: '0775'
5998
- content: |
6099
#!/bin/bash
61100
mkdir -p $HOME/bin
@@ -150,7 +189,7 @@ write_files:
150189
#!/bin/bash
151190
cd
152191
git clone https://github.com/PostgREST/postgrest src/postgrest
153-
cd src/postgres
192+
cd src/postgrest
154193
stack build --install-ghc --copy-bins --local-bin-path $HOME/bin
155194
cd
156195
path: /usr/local/sbin/06-postgrest-build.bash

opensearch-init.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ write_files:
191191
sudo systemctl start opensearch
192192
sudo systemctl enable opensearch-dashboards
193193
sudo systemctl start opensearch-dashboards
194+
# Now install elasticdump to dump and restore indexes
195+
sudo apt install nodejs npm
196+
sudo npm install n -g
197+
sudo n latest
198+
sudo npm install elasticdump -g
199+
elasticdump --version
194200
path: /usr/local/sbin/07-add-opensearch.bash
195201
owner: root:root
196202
permissions: '0775'
@@ -248,3 +254,4 @@ packages:
248254
- libncurses5
249255
- libtinfo5
250256
- httpie
257+
- npm

0 commit comments

Comments
 (0)