Skip to content

Commit

Permalink
container targeting less hard-coded
Browse files Browse the repository at this point in the history
  • Loading branch information
clpetersonucf committed Jun 3, 2021
1 parent 439c56e commit 521060f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ module.exports = (app) => {
// 2. filter for materia-web image and named xxxx_phpfpm_1 name
// 3. pick the first line
// 4. pick the container name
let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia:.* docker_app_1" | head -n 1 | cut -d" " -f2');
let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia:.* docker_app_.*" | head -n 1 | cut -d" " -f2');
if(!targetImage){
throw "MWDK Couldn't find a docker container using a 'materia-phpfpm' image named 'phpfpm'."
}
Expand Down

0 comments on commit 521060f

Please sign in to comment.