Skip to content

Commit

Permalink
Merge pull request #169 from crawlab-team/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Marvin Zhang committed Aug 25, 2019
2 parents cab2be4 + 28607a0 commit 8aa32c1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 0.3.1 (2019-08-25)
### Features / Enhancement
- **Docker Image Optimization**. Split docker further into master, worker, frontend with alpine image.
- **Unit Tests**. Covered part of the backend code with unit tests.
- **Frontend Optimization**. Login page, button size, hints of upload UI optimization.
- **More Flexible Node Registration**. Allow users to pass a variable as key for node registration instead of MAC by default.

### Bug Fixes
- **Uploading Large Spider Files Error**. Memory crash issue when uploading large spider files. [#150](https://github.com/crawlab-team/crawlab/issues/150)
- **Unable to Sync Spiders**. Fixes through increasing level of write permission when synchronizing spider files. [#114](https://github.com/crawlab-team/crawlab/issues/114)
- **Spider Page Issue**. Fixes through removing the field "Site". [#112](https://github.com/crawlab-team/crawlab/issues/112)
- **Node Display Issue**. Nodes do not display correctly when running docker containers on multiple machines. [#99](https://github.com/crawlab-team/crawlab/issues/99)

# 0.3.0 (2019-07-31)
### Features / Enhancement
- **Golang Backend**: Refactored code from Python backend to Golang, much more stability and performance.
Expand Down
15 changes: 11 additions & 4 deletions docker/Dockerfile.frontend.alpine
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
FROM node:8.16.0 AS frontend-build

ADD ./frontend /app
WORKDIR /app

# install frontend
RUN npm install -g yarn && yarn install --registry=https://registry.npm.taobao.org

RUN npm run build:prod

FROM alpine:latest

# 安装nginx
RUN mkdir /run/nginx && apk add nginx

# 拷贝编译文件
COPY dist /app/dist
COPY --from=frontend-build /app/dist /app/dist

# 拷贝nginx代理文件
COPY crawlab.conf /etc/nginx/conf.d

# 拷贝执行脚本
COPY docker_init.sh /app/docker_init.sh

# 定义后端API脚本
ENV CRAWLAB_API_ADDRESS http://localhost:8000

EXPOSE 8080

CMD ["/bin/sh", "/app/docker_init.sh"]

0 comments on commit 8aa32c1

Please sign in to comment.