Skip to content

Commit 17c50d5

Browse files
feat(studio): upgrade to pre-built studio
1 parent c04852f commit 17c50d5

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

.studiorc

Lines changed: 0 additions & 28 deletions
This file was deleted.

script/studio

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@ cd "$(dirname "$0")/.."
99
script/-studio-bootstrap
1010

1111

12+
# clean up environment
1213
unset DEBUG
13-
[ -n "${1}" ] && cd "${1}"
14+
15+
16+
# switch to alternative target directory if desired
17+
if [ -n "${1}" ]; then
18+
echo
19+
echo "==> studio: changing into directory ${1}"
20+
echo " Be sure to manually source .studiorc under the desired primary workspace"
21+
cd "${1}"
22+
fi
1423

1524

1625
echo
@@ -42,22 +51,22 @@ if [ "$(docker ps -aq -f name="${STUDIO_NAME}")" ]; then
4251
echo
4352
docker attach "${STUDIO_NAME}"
4453
launch_studio=false
45-
;;
54+
break;;
4655
s|S)
4756
echo "==> studio: stopping existing container…"
4857
docker stop "${STUDIO_NAME}" > /dev/null
49-
;;
58+
break;;
5059
n|N)
5160
echo "==> studio: doing nothing with existing container… an error is likely to occur"
52-
;;
61+
break ;;
5362
*)
54-
echo "==> studio: $choice is invalid"
55-
;;
63+
echo "==> studio: $choice is invalid";;
5664
esac
5765
done
5866
fi
5967

6068
if [ $launch_studio = true ]; then
69+
export HAB_DOCKER_STUDIO_IMAGE="ghcr.io/emergenceplatform/studio:latest"
6170
echo
6271
echo "==> studio: launching Docker-powered Chef Habitat studio…"
6372
set +e

0 commit comments

Comments
 (0)