Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from JupiterOne/tilt-opencollector
Browse files Browse the repository at this point in the history
Add tilt workflow and implement telemetry RFC
  • Loading branch information
Kenan Warren authored Aug 24, 2021
2 parents 856be72 + ad04d04 commit 676dde9
Show file tree
Hide file tree
Showing 18 changed files with 1,052 additions and 239 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jupiteroneAccountId=j1dev
jupiteroneApiKey=some-jupiterone-api-key
jupiteroneIntegrationInstanceId=some-integration-instance-id
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules/
dist/
.tilt-cache/
tilt_modules/
.j1-integration/
.env
.eslintcache
Expand Down
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM node:14-alpine
FROM node:14-bullseye-slim

ARG j1_dev_enabled=false

ENV JUPITERONE_DEV_ENABLED=$j1_dev_enabled
ENV JUPITERONE_INTEGRATION_DIR=/opt/jupiterone/integration

# node-gyp/python3 requirement
RUN apk add g++ make python
RUN apt-get update
RUN apt-get -y install g++ make python

COPY package.json yarn.lock LICENSE ${JUPITERONE_INTEGRATION_DIR}/
COPY src/ ${JUPITERONE_INTEGRATION_DIR}/src
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ with JupiterOne in the [integration documentation](docs/jupiterone.md).

### Prerequisites

TODO: Document installing kubernetes through docker for mac or similar setup

TODO: Document tilt workflow https://docs.tilt.dev/install.html

1. Install [Node.js](https://nodejs.org/) using the
[installer](https://nodejs.org/en/download/) or a version manager such as
[nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm).
Expand All @@ -22,7 +26,7 @@ with JupiterOne in the [integration documentation](docs/jupiterone.md).
names of these parameters are defined in `src/instanceConfigFields.ts`. When
executed in a development environment, values for these parameters are read
from Node's `process.env`, loaded from `.env`. That file has been added to
`.gitignore` to avoid commiting credentials.
`.gitignore` to avoid committing credentials.

### Running the integration

Expand Down
8 changes: 8 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
os.putenv('TILT_CACHE_DIR', os.path.abspath('./.tilt-cache'))

load('ext://secret', 'secret_yaml_generic')

docker_build('graph-kubernetes', '.')

k8s_yaml(secret_yaml_generic('graph-kubernetes', from_env_file='.env'))
k8s_yaml('tilt.yml')
49 changes: 0 additions & 49 deletions configs/cronjobCluster.yml

This file was deleted.

49 changes: 0 additions & 49 deletions configs/cronjobNamespace.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 676dde9

Please sign in to comment.