Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ jobs:
- run:
name: Build Docker image
command: |
docker build -f deployment/Dockerfile -t quay.io/plotly/orca:$CIRCLE_SHA1 .
docker build -f deployment/Dockerfile -t quay.io/plotly/image-exporter:$CIRCLE_SHA1 .
- run:
name: Smoke test Docker image
command: |
docker run -d -p 9091:9091/tcp --name imageserver quay.io/plotly/orca:$CIRCLE_SHA1
docker run -d -p 9091:9091/tcp --name imageserver quay.io/plotly/image-exporter:$CIRCLE_SHA1
docker run --network container:imageserver quay.io/plotly/wget wget --retry-connrefused --waitretry=1 -t 60 -O /dev/null --progress=dot http://localhost:9091/ping
- run:
name: Push Docker image to Quay
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
docker tag quay.io/plotly/orca:$CIRCLE_SHA1 quay.io/plotly/orca:$CIRCLE_BRANCH
docker push quay.io/plotly/orca:$CIRCLE_SHA1
docker push quay.io/plotly/orca:$CIRCLE_BRANCH
docker tag quay.io/plotly/image-exporter:$CIRCLE_SHA1 quay.io/plotly/image-exporter:$CIRCLE_BRANCH
docker push quay.io/plotly/image-exporter:$CIRCLE_SHA1
docker push quay.io/plotly/image-exporter:$CIRCLE_BRANCH
- save_cache:
paths:
- node_modules
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Plotly Orca: Open-source Report Creator App
# Plotly Orca

[![CircleCI](https://circleci.com/gh/plotly/orca.svg?style=svg)](https://circleci.com/gh/plotly/orca)

This repo contains source code for:

- `orca` standalone app,
- `@plotly/orca` npm package, and
- `orca` npm package, and
- Plotly's image server

## `orca` standalone app
Expand Down Expand Up @@ -52,14 +52,14 @@ cmd <- sprintf("orca '%s' -o r-export-test.png", json)
system(cmd)
```

## `@plotly/orca` npm package
## `orca` npm package

### Install

With Node.js (v6.x or v8.x) and npm installed:

```
$ npm install -g electron @plotly/orca
$ npm install -g electron orca
```

which installs two executables `orca` and `plotly-export-server`
Expand Down
10 changes: 5 additions & 5 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM ubuntu:xenial
# From: https://github.com/nodejs/docker-node/blob/master/6.11/Dockerfile

RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg curl ca-certificates xz-utils wget libgconf-2-4 \
gnupg curl ca-certificates xz-utils wget libgtk2.0-0 libgconf-2-4 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if I understand correctly, docker-build-and-push has been broken since we changed the repo's name to orca. This dummy branch seems to confirm the issue.

Now, why does adding libgtk2.0 fix this issue?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering this too. (As a future note, it would be great to put an explanation in the commit comment.)

&& rm -rf /var/lib/apt/lists/* && apt-get clean

RUN groupadd --gid 1000 node \
Expand Down Expand Up @@ -93,11 +93,11 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
apt-get install -y google-chrome-stable xvfb poppler-utils && \
rm -rf /var/lib/apt/lists/* && apt-get clean

COPY package.json /var/www/orca/
COPY bin /var/www/orca/bin
COPY src /var/www/orca/src
COPY package.json /var/www/image-exporter/
COPY bin /var/www/image-exporter/bin
COPY src /var/www/image-exporter/src

WORKDIR /var/www/orca
WORKDIR /var/www/image-exporter
RUN npm install && mkdir build

####################
Expand Down
2 changes: 1 addition & 1 deletion deployment/kube/prod/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
topologyKey: "kubernetes.io/hostname"
containers:
- name: imageserver-app
image: quay.io/plotly/orca:master
image: quay.io/plotly/image-exporter:master
env:
- name: MAPBOX_ACCESS_TOKEN
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deployment/kube/stage/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
topologyKey: "kubernetes.io/hostname"
containers:
- name: imageserver-app
image: quay.io/plotly/orca:master
image: quay.io/plotly/image-exporter:master
args: ["--plotlyJS", "https://stage.plot.ly/static/plotlyjs/build/plotlyjs-bundle.js"]
env:
- name: MAPBOX_ACCESS_TOKEN
Expand Down
4 changes: 2 additions & 2 deletions deployment/roles/update/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- debug: msg="Deploying rev {{ sha1_to_deploy }}"

- name: Ensure image exists
local_action: shell curl -o /dev/null --silent --head --fail https://quay.io/api/v1/repository/plotly/orca/tag/{{ sha1_to_deploy }}/images
local_action: shell curl -o /dev/null --silent --head --fail https://quay.io/api/v1/repository/plotly/image-exporter/tag/{{ sha1_to_deploy }}/images

- name: Rollout new image
local_action: command kubectl set image deployments/imageserver imageserver-app=quay.io/plotly/orca:{{ sha1_to_deploy }}
local_action: command kubectl set image deployments/imageserver imageserver-app=quay.io/plotly/image-exporter:{{ sha1_to_deploy }}
2 changes: 1 addition & 1 deletion deployment/run_server
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

fc-cache -v /usr/share/fonts/user

BUILD_DIR=/var/www/orca/build
BUILD_DIR=/var/www/image-exporter/build
if [[ -n "${PLOTLY_JS_SRC}" ]]; then
# Fetch plotly js bundle and save it locally:
mkdir -p $BUILD_DIR
Expand Down
2 changes: 1 addition & 1 deletion src/util/create-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const isNonEmptyString = require('./is-non-empty-string')
const os = require('os')

const COMPONENT_GLOBAL = 'PlotlyExporterComponent'
const PATH_TO_BUILD = path.join(os.tmpdir(), 'plotly-orca-build')
const PATH_TO_BUILD = path.join(os.tmpdir(), 'orca-build')
try {
fs.mkdirSync(PATH_TO_BUILD)
} catch (e) {}
Expand Down
2 changes: 1 addition & 1 deletion src/util/pdftops.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const series = require('run-series')
const uuid = require('uuid/v4')
const os = require('os')

const PATH_TO_BUILD = path.join(os.tmpdir(), 'plotly-orca-build')
const PATH_TO_BUILD = path.join(os.tmpdir(), 'orca-build')
try {
fs.mkdirSync(PATH_TO_BUILD)
} catch (e) {}
Expand Down