-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This merge pulls in the fix for #498 Changes to move the working directory where the overlayfs mounts occur to a hidden folder in the user's home directory didn't take into account the Docker use case. Overlayfs mounts do not work within a running container. These changes move the cache.yml file and the working directory (temp) into the container's volume mount. This leaves open the possibility of mounted filesystems remaining mounted if anything were to go wrong. Signed-off-by: Nisha K <nishak@vmware.com>
- Loading branch information
Showing
9 changed files
with
56 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2019 VMware, Inc. All Rights Reserved. | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
|
||
FROM photon:3.0 | ||
|
||
# install system dependencies | ||
# photon:3.0 comes with toybox which conflicts with some dependencies needed for tern to work, so uninstalling | ||
# toybox first | ||
RUN tdnf remove -y toybox && tdnf install -y tar findutils attr util-linux python3 python3-pip python3-setuptools git | ||
|
||
# install pip | ||
RUN pip3 install --upgrade pip | ||
|
||
# install tern with latest changes | ||
COPY dist/tern-*.tar.gz . | ||
RUN pip install tern-*.tar.gz | ||
|
||
# make a mounting directory | ||
RUN mkdir hostmount | ||
|
||
ENTRYPOINT ["tern", "-b", "/hostmount"] | ||
CMD ["-h"] |
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 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 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 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