Questions tagged [deployment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12 votes
4 answers
7k views

Linux Bulk/Remote Administration

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, ...
mjhennig's user avatar
  • 263
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 ...
Dwight Spencer's user avatar
6 votes
1 answer
689 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 ...
Julik's user avatar
  • 161
4 votes
2 answers
2k views

Application deployment over ssh

My job requires frequently updating versions of Centos-compiled software on customers PCs over multiple ssh hops. Recently this got to the point of unmanageable by hand. What software can be utilized ...
Zeks's user avatar
  • 141
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 ...
bernie2436's user avatar
  • 6,655
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 ...
Bryan Shadow's user avatar
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 ...
Hugo Durães's user avatar
3 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 &...
adam.k's user avatar
  • 141
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. ...
Robbo_UK's user avatar
  • 123
3 votes
1 answer
747 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/...
monksy's user avatar
  • 743
2 votes
1 answer
286 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 ...
AlexStack's user avatar
  • 591
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 ...
User12547645's user avatar
2 votes
2 answers
617 views

Unable to install rbenv with deployer user in CentOS - Permission denied

I created a new user in CentOS 6.3 using this commands useradd deployer passwd deployer visudo then I added this line to file: deployer ALL=(ALL) ALL Fine! Now I trying to install rbenv, to ...
Rodrigo's user avatar
  • 212
2 votes
1 answer
108 views

Deploy libs in hard-coded dir

I have a set of libraries and some apps that depend on it. Some of these libraries names might conflict with already installed libraries. The easiest way for me to deploy them would be Install the ...
Julien's user avatar
  • 193
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 ...
mFeinstein's user avatar
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 ...
rbaleksandar's user avatar
2 votes
2 answers
1k views

Automation of openldap installation

In my group we often install ldap on new servers. We have two different configurations currently. A mirrored configuration and just a regular standalone configuration. The installation process gets ...
Jerry Saravia's user avatar
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 ...
Martin C.'s user avatar
  • 241
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) ~/...
mcdado's user avatar
  • 121
2 votes
1 answer
832 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 ...
Darren Evans's user avatar
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 ...
Beefy_Swain's user avatar
1 vote
1 answer
127 views

Software distribution

I have a set of servers with Red Hat on board and an internal software (it is set of many files with configs and so on) that is in permanent development. There are several types of servers: ...
rush's user avatar
  • 27.4k
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 ...
Kamil's user avatar
  • 749
1 vote
2 answers
123 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 ...
vladimir.gorea's user avatar
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 ...
Andre M's user avatar
  • 443
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-...
kaligne's user avatar
  • 856
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 ...
Tulains Córdova's user avatar
1 vote
2 answers
204 views

At init, run my own script instead of the shell

This is purely theoretical but suppose I would like to deploy a linux distribution on many servers. The only solution I can think of would be to create an initramfs with a custom script to perform ...
qdii's user avatar
  • 926
1 vote
1 answer
58 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 ...
Anthony O's user avatar
  • 111
1 vote
1 answer
129 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 ...
Tim's user avatar
  • 102k
1 vote
2 answers
170 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 ...
medukrin's user avatar
1 vote
1 answer
115 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 ...
BlackDynamite's user avatar
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 ...
nomen's user avatar
  • 121
1 vote
0 answers
350 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 ...
André Borie's user avatar
1 vote
1 answer
602 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. ...
MikeSchinkel's user avatar
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 ...
M. Rostami's user avatar
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 │ ...
jakoubekcz's user avatar
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 ...
artsin's user avatar
  • 101
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 ...
simo's user avatar
  • 125
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 ...
sycc90's user avatar
  • 1
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 ...
rndm's user avatar
  • 11
0 votes
1 answer
436 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 ...
ibse's user avatar
  • 295
0 votes
1 answer
347 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 ...
user avatar
0 votes
1 answer
26 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 ...
Tim's user avatar
  • 102k
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 ...
Lonko's user avatar
  • 101
0 votes
1 answer
331 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. ...
alamar's user avatar
  • 369
0 votes
1 answer
279 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, ...
rubo77's user avatar
  • 28.9k
0 votes
0 answers
70 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 ...
Toby's user avatar
  • 1
0 votes
2 answers
60 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 ...
Kevin Renskers's user avatar
0 votes
0 answers
35 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, ...
Skippy's user avatar
  • 1