This file contains hidden or 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
| version: '3.6' | |
| services: | |
| graphql-engine: | |
| image: hasura/graphql-engine:pull2395-7ea7f82c | |
| restart: always | |
| environment: | |
| # database url to connect | |
| HASURA_GRAPHQL_DATABASE_URL: "postgres://localhost:5432/hasura" | |
| # enable the console served by server | |
| HASURA_GRAPHQL_ENABLE_CONSOLE: "true" |
This file contains hidden or 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
| #!/bin/bash | |
| # copy the dockerfile into /srv/docker | |
| # if you change this, change the systemd service file to match | |
| # WorkingDirectory=[whatever you have below] | |
| mkdir /etc/hasura | |
| curl -o /etc/hasura/docker-compose.yml https://gist.githubusercontent.com/adowning/7af0273ab3f6bab231df6387be3d355e/raw/c308134bc803fab5e5f176a2e120bae419c68e4f/docker-compose.yaml | |
| curl -o /etc/hasura/Caddyfile https://gist.githubusercontent.com/adowning/19a2918375e7d3383bbf4c28f2fa0336/raw/93d69405cd2fb4f0493ec9c989b8500855d19792/Caddyfile | |
| # copy in systemd unit file and register it so our compose file runs |
This file contains hidden or 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
| Creating a new LXD profile for macvlan | |
| Let’s see what LXD profiles are available. | |
| $ lxc profile list | |
| +------------+---------+ | |
| | NAME | USED BY | | |
| +------------+---------+ | |
| | default | 11 | | |
| +------------+---------+ | |
| There is a single profile, called default, the default profile. It is used by 11 LXD containers on this system. |
This file contains hidden or 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
| #/!bin/bash | |
| # update | |
| apt update | |
| # apt -y upgrade | |
| adduser ash | |
| usermod -aG ash | |
| # install package management tools |
This file contains hidden or 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
| //settings |
This file contains hidden or 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
| #!/bin/bash | |
| # Run this as root | |
| # Configure docker repo | |
| apt-get update | |
| apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common |
This file contains hidden or 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
| var params = { | |
| LanguageCode: en-US | es-US, /* required */ | |
| Media: { /* required */ | |
| MediaFileUri: 'STRING_VALUE' | |
| }, | |
| MediaFormat: mp3 | mp4 | wav | flac, /* required */ | |
| TranscriptionJobName: 'STRING_VALUE', /* required */ | |
| MediaSampleRateHertz: 0, | |
| Settings: { | |
| MaxSpeakerLabels: 0, |
This file contains hidden or 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
| unite configure --packageName=opol5 --profile=VueJavaScript --unitTestRunner=None --e2eTestRunner=None --cssPre=Stylus --cssPost=None --cssLinter=Stylint --documenter=None --title="Andrews Admin App" --shortName=AAA --description=app --keywords=none --organization=Andrews --copyright=9929 --webSite=www.n.n --namespace=com.andrews.blah --author="a dow" --authorEmail=ash@sadf.com --authorWebSite=sadf.com --outputDirectory=/dist |
This file contains hidden or 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
| docker run -t -i --net="bridge" -p 1883:1883/tcp -p 9001:9001 -v /mnt/cache/app_config/mqtt/:/config spants/mqtt | |
| docker run -d -p 9000:9000 --restart always --name=portainer -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer --no-auth |