Skip to content

Commit

Permalink
Merge pull request #119 from JarvusInnovations/develop
Browse files Browse the repository at this point in the history
Release: hologit v0.35.1
  • Loading branch information
themightychris authored Jan 13, 2021
2 parents 7eda77a + 9c858e8 commit 9360226
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
/.holo/
/docs/
/github-actions
/script/
/studio/
.bldr.toml
.eslintrc.json
jsconfig.json
*.md
mkdocs.yml
!README.md
2 changes: 2 additions & 0 deletions lib/Studio.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ class Studio {
if (uid && gid && username) {
logger.info(`configuring container to use user: ${username}`);
await containerExec(container, 'adduser', '-u', `${uid}`, '-G', 'developer', '-D', username);
await containerExec(container, 'mkdir', '-p', `/home/${username}/.hab`);
await containerExec(container, 'ln', '-sf', '/hab/cache', `/home/${username}/.hab/`);
container.defaultUser = `${uid}:${gid}`;
}

Expand Down
2 changes: 1 addition & 1 deletion plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pkg_build_deps=(
pkg_deps=(
core/git
jarvus/node14 # newer than core/node12
core/hab/0.79.1 # last version before new license
core/hab/0.79.0 # last version before new license
)

pkg_bin_dirs=(bin)
Expand Down
8 changes: 5 additions & 3 deletions studio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# common base for both stages
FROM habitat/default-studio-x86_64-linux:0.79.1 as base
FROM habitat/default-studio-x86_64-linux:0.79.0 as base

ARG HAB_LICENSE=no-accept
ENV HAB_LICENSE=$HAB_LICENSE
Expand All @@ -9,7 +9,7 @@ ENTRYPOINT ["hab", "sup", "run"]
CMD ["jarvus/hologit-studio"]

RUN hab pkg install \
core/hab-sup/0.79.1 \
core/hab-sup/0.79.0 \
core/hab-launcher/10180 \
core/tar \
core/gcc \
Expand All @@ -28,4 +28,6 @@ RUN mkdir -m 1777 -p /tmp \

ARG HOLOGIT_STUDIO_PACKAGE=jarvus/hologit-studio
RUN hab pkg install $HOLOGIT_STUDIO_PACKAGE \
&& hab pkg exec core/coreutils rm -rf /hab/cache/{artifacts,src}/
&& rm -rf /hab/cache/{artifacts,src}/ \
&& chgrp -R developer /hab \
&& chmod -R g=u /hab
2 changes: 1 addition & 1 deletion studio/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pkg_license=("MIT")
pkg_maintainer="Chris Alfano <chris@jarv.us>"

pkg_build_deps=(
core/hab/0.79.1
core/hab/0.79.0
)
pkg_deps=(
core/busybox-static
Expand Down

0 comments on commit 9360226

Please sign in to comment.