Multi-stage programming languages internalize the notions of runtime program generation and execution.
Questions tagged [multistage]
21 questions
9
votes
2 answers
How to deploy a react app to mutiple environments without multiple builds?
I'm setting up a CI/CD pipeline using Azure DevOps to automatically deploy a React application to multiple environments. As I understood things, the environments variables (REACT_APP_*) are used during the npm build. How do I set up the build phase…

Thibault
- 446
- 7
- 17
8
votes
0 answers
In multi-stage compilation, should we use a standard serialisation method to ship objects through stages?
This question is formulated in Scala 3/Dotty but should be generalised to any language NOT in MetaML family.
The Scala 3 macro tutorial:
https://docs.scala-lang.org/scala3/reference/metaprogramming/macros.html
Starts with the The Phase Consistency…

tribbloid
- 4,026
- 14
- 64
- 103
8
votes
1 answer
Gradle dependency caching during docker multi stage build?
I have the following Dockerfile
FROM gradle:jdk13 AS appbuild
WORKDIR "/home/gradle/"
COPY --chown=gradle:gradle "./build.gradle" "/home/gradle/"
RUN gradle dependencies
COPY --chown=gradle:gradle "./src/" "/home/gradle/src/"
RUN gradle build…

Gábor DANI
- 2,063
- 2
- 22
- 40
5
votes
1 answer
Matlab: How to customize a clustering code to be a multistage clustering?
I want to cluster a huge amount of data records. The data that I'm dealing with are of string type. The clustering process takes a long time.
Let us assume that I want to cluster a set of email data records into cluster, where emails written by the…

s.e
- 271
- 2
- 15
3
votes
1 answer
capistrano ssh connection - doesn't work when ran from cron or teamcity
I've been researching this all day and can't seem to find an answer so am posting here. We are using capistrano multistage to deploy our ruby on rails app and all is well, until we get to automated deployments.
Right now whenever this is ran…

pablo
- 473
- 1
- 6
- 14
3
votes
1 answer
How do I 'copy' installed R-packages from the 1ste stage to 2nd stage using multistage building on a R-base image?
I'm trying to build an image base on R-base, following the multi stage method. How can I copy the installed packages from the 1ste stage into the 2nd stage? And nothing else?
The current file gives me basically a 'packageless' R-base version. So the…

rgms
- 129
- 2
- 9
2
votes
1 answer
Docker: Multistage builds result in multiple images
Given this small example of a multistage build
FROM node:10 AS ui-build
WORKDIR /usr/src/app
FROM node:10 AS server-build
WORKDIR /root/
EXPOSE 3070
ENTRYPOINT ["node"]
CMD ["index.js"]
why does this result in 3 images on my local file…

CD86
- 979
- 10
- 27
1
vote
1 answer
K8S Helm Chart + ArgoCD Multi-Stage Approach --> How?
I've been involved with Kubernetes, ArgoCD and Helm Charts for a few weeks now. I already have a running EKS cluster, ArgoCD and my first Whoami app running. I have already developed my own app as a Helm Chart. I am just asking myself how best to…

Stefan
- 11
- 2
1
vote
1 answer
Multistage Builds with Testcontainers
I'm trying to use Testcontainers inside the Multistage Build Dockerfile, and it's currently failing with :
ERROR --- [ main] o.t.d.DockerClientProviderStrategy : Could not find a valid Docker environment. Please check…

jay1648
- 76
- 1
- 6
1
vote
1 answer
Multi stage docker build of a golang application can't find the .env file
I'm trying to debug a multi-stage docker build for a golang app that is driving me nuts.
The docker file is as follows
FROM golang:1.15-alpine as build
RUN apk add --no-cache git
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
…

Peter Nunn
- 2,110
- 3
- 29
- 44
1
vote
1 answer
Passing environment variables across stages in docker multistage image
I have a docker image which has 4 lower layers.
I want to reduce the size of my current image layer using multistage, but this causes a loss of environment, port and cmd config properties across the stages. Is there a way to pass on such config…

Aarushi Gupta
- 11
- 3
1
vote
3 answers
Generating strings and executing them as programs during runtime
This is a tough question to word and I'm not sure what the proper term for it would be (if any). I'm curious what languages allow you to "build up" a string during program execution, and then execute it as part of the program. The only language…

jparanich
- 8,372
- 4
- 26
- 34
0
votes
1 answer
Capistrano config files location
Im using capistrano to deploy PHP projects which all works perfectly I am now introducing multistage, which I have also got working no problem
In my actual application setup I like to store the files in a differnt…

nick-ls
- 11
- 3
0
votes
0 answers
Npm webpack build failes in docker multistage setup when build folder is going to be copied
I run into a strange npm / yarn / webpack build error in a docker multistage build process.
Docker version 24.0.5
Docker Compose version v2.17.2
DOCKER_BUILDKIT=1
I use docker-compose up --build but I get the same result when building with docker…

Effing
- 23
- 3
0
votes
1 answer
Making a docker container from bioconductor and ubuntu 18.04 docker container for bioinformatics
This is my first question on stackoverflow.
I want to use both ubuntu:18.04 and bioconductor/bioconductor_docker docker images to build a docker image for a nextflow pipeline using resources from both containers.
I am not a software developer of any…

Vineet
- 1