@@ -115,5 +115,32 @@ func newPackageRegistryDockerfile(_ string, profilePath string) (*simpleFile, er
115115 path : filepath .Join (profilePath , profileStackPath , string (PackageRegistryDockerfileFile )),
116116 body : packageRegistryDockerfile ,
117117 }, nil
118+ }
119+
120+ // ElasticAgent8xEnvFile is the .env for the 8x stack.
121+ const ElasticAgent8xEnvFile configFile = "elastic-agent.8x.env"
122+
123+ //go:embed _static/elastic-agent_8x.env
124+ var elasticAgent8xEnv string
118125
126+ func newElasticAgent8xEnv (_ string , profilePath string ) (* simpleFile , error ) {
127+ return & simpleFile {
128+ name : string (ElasticAgent8xEnvFile ),
129+ path : filepath .Join (profilePath , profileStackPath , string (ElasticAgent8xEnvFile )),
130+ body : elasticAgent8xEnv ,
131+ }, nil
132+ }
133+
134+ // ElasticAgentDefaultEnvFile is the default .env file.
135+ const ElasticAgentDefaultEnvFile configFile = "elastic-agent.default.env"
136+
137+ //go:embed _static/elastic-agent_default.env
138+ var elasticAgentDefaultEnv string
139+
140+ func newElasticAgentDefaultEnv (_ string , profilePath string ) (* simpleFile , error ) {
141+ return & simpleFile {
142+ name : string (ElasticAgentDefaultEnvFile ),
143+ path : filepath .Join (profilePath , profileStackPath , string (ElasticAgentDefaultEnvFile )),
144+ body : elasticAgentDefaultEnv ,
145+ }, nil
119146}
0 commit comments