File tree Expand file tree Collapse file tree 4 files changed +50
-4
lines changed Expand file tree Collapse file tree 4 files changed +50
-4
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ repository-code: "https://github.com/caltechlibrary/cloud-init-examples"
1010type : software
1111version : 0.0.7
1212license-url : " https://caltechlibrary.github.io/cloud-init-examples/LICENSE"
13- date-released : 2024-03-07
13+ date-released : 2024-03-08
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 5656# 8. 08-add-newt.bash, downloads Solr 9.5.0 and installs it from a tar ball.
5757#
5858write_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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments