Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve release candidate container build cachability and reproducabi…
…lity The release candidate container setup script makes reusing cached image layers difficult because any change to the setup script (e.g. sbt/npm version) invalidates the previous cached layers. This means anytime a change is made to this script the entire container image must be rebuilt which takes a lot of time and wasted space. To avoid this, the container setup script is removed and all functionality is moved to the Dockerfile. This results in more layers, but makes it less likely to need to rebuild layers if there are changes. Commands that are more likely to change due to versions or contents (e.g. sbt/yarn install, release-candidate script) are put closer to the end so if they are changed, less needs to be rebuilt. More importantly, the installation of yarn and sbt do not provide a specific version, so the version in the container depends on the latest version available in the npm/sbt repositories when the container is built. To improve reproducability, they are changed to install a pinned version (the latest versions as of this change). Additional minor updates to the container: - Switch from fedora-minimal to fedora. The size difference is minimal compared to the final size of the container, and it replaces microdnf with dnf, which has more capabilities to make the Dockerfile cleaner, (e.g. quieter build, repo/repofrompath options). - Add the "--group-add keep-groups" option to the podman run command needed for newer versions of podman. - Some files only need to be verified when building Daffodil and not VS Code, only mention the correct files to avoid confusion. - Update sbt-pgp plugin to latest version - Update wix_wine.sh to remove debug message that SBT makes look like errors. DAFFODIL-2713
- Loading branch information
1 parent
c521ae3
commit 6601882
Showing
6 changed files
with
79 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one or more | ||
// contributor license agreements. See the NOTICE file distributed with | ||
// this work for additional information regarding copyright ownership. | ||
// The ASF licenses this file to You under the Apache License, Version 2.0 | ||
// (the "License"); you may not use this file except in compliance with | ||
// the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters