Skip to content

Commit 3cb83fe

Browse files
authored
[Ballista] Docker files for ui (#22)
1 parent 245f0b8 commit 3cb83fe

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

ballista/ui/scheduler/.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
build

dev/build-ui.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
BALLISTA_VERSION=0.4.2-SNAPSHOT
21+
22+
set -e
23+
24+
docker build -t ballistacompute/ballista-scheduler-ui:$BALLISTA_VERSION -f dev/docker/ui.scheduler.dockerfile ballista/ui/scheduler

dev/docker/ui.scheduler.dockerfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Turn .dockerignore to .dockerallow by excluding everything and explicitly
19+
# allowing specific files and directories. This enables us to quickly add
20+
# dependency files to the docker content without scanning the whole directory.
21+
# This setup requires to all of our docker containers have arrow's source
22+
# as a mounted directory.
23+
24+
FROM node:14.16.0-alpine as build
25+
WORKDIR /app
26+
ENV PATH /app/node_modules/.bin:$PATH
27+
28+
COPY package.json ./
29+
COPY yarn.lock ./
30+
RUN yarn
31+
32+
COPY . ./
33+
RUN yarn build
34+
35+
FROM nginx:stable-alpine
36+
COPY --from=build /app/build /usr/share/nginx/html
37+
EXPOSE 80
38+
CMD ["nginx", "-g", "daemon off;"]

dev/release/rat_exclude_files.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.npmrc
22
*.gitignore
3+
*.dockerignore
34
.gitmodules
45
*_generated.h
56
*_generated.js

0 commit comments

Comments
 (0)