Questions tagged [deployment]
The deployment tag has no usage guidance.
57
questions
0
votes
0
answers
48
views
Leave specific file on server when running bitbucket pipeline using rsync
I have a bitbucket pipeline setup to rsync to a server that hosts a Wordpress Site. The files on the server initially have a skeleton Wordpress site with a wp-config.php & wp-config-sample.php but ...
0
votes
2
answers
51
views
Django backend died when deploying a new version: Address already in use
I have a Django app running on a Debian server, with a simple deploy script that is automatically invoked via a GitHub webhook:
#!/bin/sh
git pull
/home/criticalnotes/.local/bin/poetry install --with ...
0
votes
0
answers
21
views
I ran npm install directly on my ssh and now git ci/cd is not updating anymore
Last night I merged a pull request in Git, on a repo that has script to continually deploy to a machine, and then ran
npm i react lottie -force
directly on the machine.
After checking the website, ...
0
votes
0
answers
27
views
Imaging a Linux Lab
I am running Xubuntu on my computers in one of my labs. What is the best way to image my master image out to approximately 20 computers? Right now I am just using clonezilla and physically removing ...
0
votes
1
answer
522
views
Bash script to restart java application after Jenkins compiling
I'm noob in linux! I have my server and installed jenkins. I need to create bash script, which should run application(or will restart if it has already been started) after jenkins compile it. I tried ...
0
votes
1
answer
407
views
Deploying applications in old distributions compiled in the new distribution
I have a binary built on ubuntu 20 (in a docker container FROM ubuntu:latest)
What if I want to run this binary, for example, in ubuntu 16?
I know that it is possible to face the fact that the version ...
0
votes
0
answers
12
views
How to name a newer version of command, which is not fully compatible with old version
I have two versions of the same command. The newer version is not fully backward compatible with the old version. Should I add version number to the command name in this case like so
/usr/bin/foo
/usr/...
0
votes
1
answer
17
views
What are the existing open source tools to develop on-premise organizational app store on linux?
We have a Linux cluster in our organization and my data science team is developing a number of ML projects to be utilized by teams across the organization. To enable the teams to access the ML models, ...
1
vote
1
answer
2k
views
How to install apt packages into mounted system image (img file)
I need to edit/prepare debian-based Raspbian system image for multiple Raspberry Pi devices.
Until now, my modifications consisted in adding or changing existing config files.
I wrote script like this ...
1
vote
0
answers
293
views
Debian packages for continuous deployment
I would like to use Debian packages to deploy software (a web application) to a Debian-based server. For reasons beyond the scope of this question we cannot use Docker (or a PaaS such as Heroku) to ...
2
votes
1
answer
1k
views
printf -v is an illegal option, in Bitbucket pipeline. And a question about << [closed]
Hello I'm brand new to shell scripting, so sorry if this is trivial.
How do you use printf command with the -v option?
In our deployment.sh file we have this line
printf -v BITBUCKET_COMMIT_str %q &...
1
vote
2
answers
104
views
Why use Docker images in production when already have VMs? [closed]
I am doing research on which is the most efficient way for serving a production app from a cloud hosting provider like DigitalOcean using linux as server platform. DigitalOcean provides VMs - called ...
1
vote
1
answer
55
views
What set of system-wide configuration settings can conflict when installing different applications on a unix-based OS?
Reading this report on containerization the authors mention that:
A problem caused by Unix’s shared global filesystem is
the lack of configuration isolation. Multiple applications can
have ...
1
vote
1
answer
127
views
Rolling upgrade/deployment for wine?
While I am using wine to run some Windows exe program files on Lubuntu 18.04, I update and upgrade which probably have updated wine.
While I am still running the Windows exe programs, I try to run ...
0
votes
2
answers
43
views
Deployment systems for Linux
My project is based on a Raspberry Pi distro - Raspbian. But I made changes to it. There are a lot of them: changes in config.txt, adding system services, installing new packages, change the image of ...
0
votes
2
answers
1k
views
Recommendations for editing same file on different machines
Our Rails app is scaled at multiple machines, from time to time, we need to change settings at production.yml , right now we have to ssh into each server and do the editing at each machine ...
0
votes
1
answer
342
views
What's the difference between CMs "push" method (Ansible) to "pull" method (Chef/Puppet)?
I know that some of the advantages of Ansible over many other CMs are these:
Ansible's scripts being written in YAML, a simple serialization language.
The fact that one doesn't have to install it on ...
2
votes
2
answers
10k
views
How to install Nitrux OS using znx?
I want to check out Nitrux, which can be "deployed" using znx (how-to here).
znx does not seem to open correctly in Fedora, so I would like to deploy it using the terminal. The how-to says ...
1
vote
1
answer
582
views
Use rsync to mirror source for website deployment, but not delete selected files in destination
I have been working on this for several days and no matter what I do I can't get it to work. I've read practically every Q&A on StackExchange network about rsync but still not found the answer.
...
1
vote
0
answers
38
views
Linux Partition on Different Architecture [duplicate]
I have a Cubieboad 2, Raspberry Pi 3 and an Android Smart Phone.
On Cubieboard and Raspberry, I write Cubian and Raspbian. On Android, I installed Linux Deploy and installed Debian armhf.
All of ...
0
votes
1
answer
25
views
How can we make deployment of personal configuration or startup files easier, with existence of default ones?
I have a follow-up question after https://unix.stackexchange.com/a/435293/674
Suppose I have a personal configuration or startup file in my backup external hard drive or github repository, for ...
1
vote
2
answers
169
views
Copy multiple files to multiple clients
I want to deploy multiple files on multiple remote machines, what is the best way ( other than ssh's ssh-key ). Is there any lightweight service for this ?
For example, I have 15 files which should ...
1
vote
1
answer
2k
views
Temporarily disable user?
We use continuous deployment to deploy changes to our production host. At the same time we would like to prevent access to the deployment account, except during specific deployment windows. At the ...
0
votes
1
answer
31
views
Autodeploy selected image from image repository
We have many Raspberry pi deploys where we are manually cloning sd cards.
Is there a tool like net boot for RPI or a autodeploy solution?
Something like extremly small linux image that know how to go ...
1
vote
1
answer
111
views
Copy an executable to an arbitrary number of hosts?
How can I copy an executable file to an arbitrary number of hosts and have it run on all of them? Sending this .exe to 20 hosts.
Trying to have the files go into the /tmp directory. Setting up a lab ...
0
votes
2
answers
2k
views
How to distribute a portable Linux commercial closed-source program? [closed]
First of, I've found this similar question How to make a portable Linux app? but it doesn't really address my questions, it's more about how to compile to make the application portable which I already ...
2
votes
1
answer
3k
views
How to deploy a Java application
I made java application that's supposed to be executed as daemon. I am using an Amazon Linux AMI, which uses SysVinit and I already have an init script for my daemon, I am just a bit confused on where ...
3
votes
1
answer
108
views
live PHP webapp deployment
I am looking to setup Bamboo to do live PHP deployments (same principles can apply to Jenkins)
I would like to be able to do live releases with the push of a button in the Bamboo application.
...
2
votes
1
answer
283
views
Using Docker in production
I'm working on a [legacy] project with a build pipeline that generates RPMs that are picked up by Spinnaker to Bake an AMI that will in turn run on an AWS EC2 machine.
I proposed to use Docker ...
3
votes
1
answer
1k
views
Should I deploy with the same user who is running the website?
I have a website being served by Nginx and I've recently setup travis builds and deployments for it.
Nginx is running the website as www-data user. I've created an user deploy so that Travis can ...
0
votes
3
answers
4k
views
Run application built on Ubuntu on CentOS
Is there a way to deploy an application, that you built on Ubuntu, on CentOS? And if so, how?
EDIT: Sorry, I should have given some more info.
It's built on Ubuntu 15.10 with Qt 5.6, and besides Qt ...
1
vote
1
answer
83
views
Deploy personal programs and scripts
I have a git project containing useful programs and scripts. Hierarchy looks like this:
$ git clone https://github.com/myaccount/myutils.git
$ tree myutils
.
├── bash
│ ├── do-this.sh
│ ├── do-...
-2
votes
1
answer
28
views
PGP key for Rails deployment tutorial
In this portion of the tutorial I'm using, I'm supposed to setup a PGP key.
Should I use the one they list, or is that just a placeholder? If so, how do I choose what key I want to use?
3
votes
1
answer
740
views
The Safest Way to Deploy a Daemon via Jenkins
I'm developing a system service in Java, and for the deployment I would like to do the following:
Copy over the new Initd from the build
Stop the service being deployed
Overwrite/copy the new JAR/...
0
votes
1
answer
330
views
Languages to use for console tools - Go, Rust, Javascript? [closed]
I'm planning to write a data cruncher command line tool, I'm considering Go, Rust and Javascript. But I'm afraid of jeopardising the project by using something not stable enough or painful to deploy.
...
0
votes
1
answer
277
views
Verbose copying of complete folder deleting target
I want to copy a development folder that has some changes into the server folder with rsync. Without rsync I would do it like
rm -Rf /var/www/site
cp -a dev /var/www/
But I would like to use rsync, ...
2
votes
0
answers
344
views
apt-get update: Unable to find expected entry 'Packages' in Release file
We have an automated build and deploy process based on debootstrap and apt for creating image files for one of our products directly after the build on the build-server.
The sources.list is a bit ...
2
votes
1
answer
4k
views
Syntax error: word unexpected (expecting ")") when running remotely but no problem running locally
I've read plenty of discussions on various possibilities why such a thing can happen however all are about some missing library on the system where the binaries are deployed. This is not my case.
I ...
1
vote
3
answers
6k
views
Merge (combine) directories using rsync
I need to create a deploy script to combine the following directory structure:
├── LIB_COMMON
│ ├── file1.php
│ ├── file2.php
│ ├── file3.php
│ └── file4.php
├── LIB_CZ
│ ├── file2.php
│ ...
4
votes
0
answers
49
views
Create ready gentoo images for deployment
Assume I know exactly what hardware each target machine contains.
Can I have reliable way to prepare images for target machines on my computer, which I can just copy over on that other drive and there ...
2
votes
1
answer
1k
views
Bash script to get the result from rsync transfer and zip it as a directory in the original directory
OK, I guess this is weird.
I have a small stage.sh script very simply has a bunch of commands:
if [ "$(whoami)" == 'David' ]; then
rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ~/...
2
votes
1
answer
830
views
Multiple Windows recovery image deployment via Linux PXE server?
Is the following scenario feasible:
A laptop repair workshop currently using multiple, physical hard disk caddies containing various Windows 7 / 8 recovery images for repairing various laptop models ...
1
vote
1
answer
1k
views
How to correctly deploy/install scripts?
I've developed several utility scripts that solve specific problems of my team's day-to-day work.
Up to now, what I have done to deploy the script in my co-workers' laptops is as follows:
Every ...
-1
votes
1
answer
91
views
ITEAD Core A20 cant load or Proceed to the FileSytem
i have an ITEAD CORE AW2041, which i wanted to deploy some image on it, i got the image on an sd card but when i deploy it on the device, the booting process gets stuck at the kernel level, any heads ...
0
votes
0
answers
78
views
Why wouldn't distributions use a cross-platform service manager?
I use Supervisor for my services on production servers. I also recently switched to MacOS and, for services that I need for development, instead of a OSX's service manager, proposed by brew (launchd?),...
4
votes
1
answer
1k
views
Where is the appropriate place to deploy web apps?
I am a new sysadmin (by default). We have an ubuntu 14 server with two users. Both users need to deploy web apps to the (production) server. My plan is to create a folder off of root
/apps/
and ...
1
vote
1
answer
55
views
Software firewall with "zone files"
I am using an automatic deployment system for my new Unix deployments. I have a fairly complicated network topology to implement, and I'm looking for firewall software that makes this easy.
In ...
7
votes
1
answer
4k
views
How to automatically launch a lxc container on ssh connection?
I'm attempting to setup a system that automatically creates a new sandbox on a ssh login to use as a temporary jump box into my server. So to do this I was wonder how to setup lxc to spin up a new ...
1
vote
3
answers
20k
views
How to deploy programs on multiple machines [duplicate]
I need to install a few programs on around 40 Kubuntu 13.04 machines, and would like to know what options I have to do it as efficiently as possible.
EDIT: I have the repositories already set and the ...
6
votes
1
answer
668
views
Deploying filesystem images onto a partition of arbitrary size
I would like to establish a deployment process for Ubuntu machines based on root FS images. I would like to restore the image onto a simply-formatted hard drive (I can completely erase the disk during ...