Questions tagged [startupscript]

158 questions
0
votes
0 answers

Open SSH tunnel during PostGIS Docker build

How to open an SSH tunnel during the build process of PostGIS container build? I need to SSH tunnel to database, so I can create dump, then restore in container. With other docker containers, I usually create a startup.sh then run from Dockerfile. …
user2517182
  • 1,241
  • 3
  • 15
  • 37
0
votes
1 answer

PostGIS Docker root Access

How to build postgis container as root user using docker-compose up? In Dockerfile, separate attempts to set USER to root as well 0 did not work. Updating docker-compose service with user: '0' was tried to no avail. There error I am getting is…
user2517182
  • 1,241
  • 3
  • 15
  • 37
0
votes
0 answers

error while communicating with "startup-script" script: bufio.Scanner: token too long

I'm creating an instance on GCP running a startup-script that should take about 30 minutes to install everything, including running a python machine-learning code. I'm creating it with something like that: gcloud compute instances create XXXXX \ …
0
votes
0 answers

How can i run a command while first command is still running? (Windows CMD)

I have a python program that I run with; hypercorn main:app --bind 0.0.0.0:8005 --workers 4 Also I have a node program that I run with; node index.js But both of them are continuous processes. So when I write the first command to run my Python…
muzak
  • 33
  • 4
0
votes
1 answer

GCP linux startup script to grant all users permission to directory and files

I am attempting to run the following startup script on a GCP vm instance: mkdir /home/example_user/ mkdir /home/example_user/test echo "hello world" >> /home/example_user/test/.env chmod 777 /home/example_user/ When I login to the created vm, and…
0
votes
0 answers

How to add my nodejs server to startup program of window?

I want the server made with Node.js to start automatically when Windows is operating. I know that Windows runs the exe files in the StartUp folder when it is run. But I've never made an exe file. (I am not sure how to do it). I think there are…
MINJA KIM
  • 876
  • 1
  • 8
  • 22
0
votes
2 answers

Reference ephemeral external IP address in startup script for compute engine

Is there a special variable that references the assigned ephemeral external IP address so I can define it in the startup script?
0
votes
1 answer

STM32F407ze throws hard fault on executing code from RAM

I am trying to execute a simple code from RAM, but for some reason the program halts/throws hard fault. I am using CCMRAM for my data, heap and stack while SRAM1 for executing code. Here is my linker script and startup…
0
votes
1 answer

To add a startup script when deploying a windows instance in GCP

I'm deploying a Windows Instance in GCP with couple of startup scripts using the metadata option in the gcp_compute_instance module, as the instance is getting created as expected but the startup scripts are not getting executing, kindly refer the…
0
votes
1 answer

How do I ensure GCP start-script uses the correct service account?

I am creating a VM in GCP's Compute Engine with a service account that has permissions to read from a particular Cloud Storage bucket that contains some common configuration that may contain sensitive information, such as TLS certs. However when my…
Brandon
  • 890
  • 2
  • 13
  • 32
0
votes
1 answer

Problem running a modified startup-script in GCP

I am trying to set up an Instance using an Instance Template in the GCP Deployment Manager. It works fine but upon adding startup-script in metadata, it doesn't. This is the code (and script) I am trying to run: gcloud compute instances create…
0
votes
0 answers

How to create a startup service of django for ubuntu server?

I am creating a project where I am using an ubuntu server for production. I need to run the server in the background even though I log out. So, as a solution I am using screen but however if I restart it won't work as we all know and I have to…
Anny
  • 163
  • 1
  • 9
0
votes
1 answer

Handle internet exception on python script startup

I want a python script to execute on startup, so for that, I created a bat file and a vbs file and it works when there is internet but most of the time when I turn on the pc and log in, the script launches before the pc connects to the internet and…
0
votes
1 answer

Installation (startup.bat) script won't start my app, error appears

I'm trying to create .bat script that will start my Java application. Application uses a lot of the dependencies so I have to create a fat jar: I did that by adding this dependency to my pom.xml: pom.xml
JustQuest
  • 249
  • 4
  • 15
0
votes
1 answer

How to run a tmux session as startup_script in google cloud?

I want to run a python script in a tmux session on startup when launching my google cloud vm. I have searched around stack overflow and found this piece of code. #! /bin/bash sudo -H -u MyUser tmux new-session -d -s discord 'python3 MyFile.py' I…