Skip to content

Commit 5f9a5e7

Browse files
committed
update docker image to use to node 18.16.0 and racket 8.7
1 parent c32771d commit 5f9a5e7

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

Dockerfile

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# syntax=docker/dockerfile:1
2-
FROM racket/racket:8.1-full
2+
FROM racket/racket:8.7-full
3+
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends xz-utils make \
6+
&& apt-get clean
37

48
WORKDIR /app
5-
RUN curl -O https://nodejs.org/dist/v14.17.1/node-v14.17.1-linux-x64.tar.xz
6-
RUN tar xvf node-v14.17.1-linux-x64.tar.xz -C .
7-
ENV PATH="/app/node-v14.17.1-linux-x64/bin:${PATH}"
9+
RUN curl -O https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-x64.tar.xz
10+
RUN tar xvf node-v18.16.0-linux-x64.tar.xz -C .
11+
ENV PATH="/app/node-v18.16.0-linux-x64/bin:${PATH}"
812
RUN npm install -g js-beautify
913

1014
COPY . /app/racketscript-playground
11-
ENV PATH="/root/.local/share/racket/8.1/bin/:${PATH}"
15+
ENV PATH="/root/.local/share/racket/8.7/bin/:${PATH}"
1216
RUN raco pkg install --auto racketscript
1317

1418
WORKDIR /app/racketscript-playground

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Racketscript Playground
22
=======================
33

44
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5-
[![Docker](https://img.shields.io/docker/cloud/automated/vishesh/racketscript-playground)](https://hub.docker.com/r/racketscript/racketscript-playground)
5+
[![Docker](https://img.shields.io/docker/cloud/automated/racketscript/racketscript-playground)](https://hub.docker.com/r/racketscript/racketscript-playground)
66
[![Try Online](https://img.shields.io/badge/try_it-online!-ff9900.svg)](http://play.racketscript.org)
77

88
Playground for [RacketScript](https://github.com/racketscript/racketscript).
@@ -61,3 +61,9 @@ make -j4 quickrun
6161
RacketScript is licensed under [MIT license](LICENSE). Third-party
6262
libraries can be found over [here](static/index.html)
6363
and [here](package.json).
64+
65+
## Troubleshooting
66+
67+
- Running `docker` commands gives permission error
68+
69+
[Add user name to `docker` user group](https://docs.docker.com/engine/install/linux-postinstall/): `sudo usermod -aG docker $USER`

examples/overview.rkt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
;; RacketScript is an experimental Racket to JavaScript compiler,
44
;; which hopes to be practically useful someday. Source code is
5-
;; available at https://github.com/vishesh/racketscript
5+
;; available at https://github.com/racketscript/racketscript
66

77
;; We support modules, but we don't yet compile Racket's stdlib.
88
(require racketscript/htdp/universe racketscript/htdp/image ;; replaces 2htdp/*

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"main": "./js-build/dist/modules/app.rkt.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/vishesh/racketscript-playground"
8+
"url": "https://github.com/racketscript/racketscript-playground"
99
},
1010
"keywords": [
1111
"racket",
1212
"compiler"
1313
],
1414
"author": "Vishesh Yadav",
1515
"bugs": {
16-
"url": "https://github.com/vishesh/racketscript/issues"
16+
"url": "https://github.com/racketscript/racketscript/issues"
1717
},
1818
"dependencies": {
1919
"express": "^4.17.1",

0 commit comments

Comments
 (0)