Skip to content

Commit

Permalink
ci: updated README and backport CI (#1606)
Browse files Browse the repository at this point in the history
(cherry picked from commit de7356b)
  • Loading branch information
karl-cardenas-coding committed Sep 25, 2023
1 parent 9aa6b1c commit cbeb423
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ README.md
CHANGES
.gitignore
.cache
prow/
prow/
.env
5 changes: 0 additions & 5 deletions .github/workflows/version-branch-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ jobs:
run: |
netlify build --context deploy-preview
- name: compile
run: |
make build
- name: Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v2.1.0
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN apk add util-linux && \
chmod +x /entry.sh && \
mkdir .cache && \
npm ci && \
chown -R node:node /librarium
chown -R node:node /librarium && \
echo -e "ALGOLIA_APP_ID=1234567890\nALGOLIA_SEARCH_KEY=1234567890" > .env

EXPOSE 9000
USER node
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ help: ## Display this help
initialize: ## Initialize the repository dependencies
@echo "initializing npm dependencies"
npm ci
touch .env
npx husky-init

clean: ## Clean build artifacts
Expand Down
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ To contribute, we recommend having the following software installed locally on y

To get started with the Docker based local development approach ensure you are in the root context of this repository.

Initailize the repository by issuing the following command:

```shell
make init
```

Next, issue the following command to build the Docker image.

**Note**: The first time issuing the command may take several minutes.
Expand All @@ -35,15 +41,13 @@ make docker-image

To start the Dockererized local development server, issue the command:

```
```shell
make docker-start
```

The local development server is ready when the following output is displayed in your terminal.

```shell
npm run start

> spectro-cloud-docs@4.0.0 start
> docusaurus start --host 0.0.0.0 --port 9000

Expand All @@ -62,12 +66,6 @@ To exit from the local development Docker container. Press `Ctrl + Z`.

## Local Development Setup (Non-Docker)

Make a folder somewhere you can easily find

```sh
mkdir ~/Work
```

Clone the repository and run the initialization script

```sh
Expand All @@ -77,6 +75,13 @@ cd librarium
make init
```

Next, populate the `.env` file with the following content. The local development server will not start without the required environment variables. The values are not important for local development.

```shell
ALGOLIA_APP_ID=1234567890
ALGOLIA_SEARCH_KEY=1234567890
```

## Documentation Content

Create a branch to keep track of all your changes.
Expand Down

0 comments on commit cbeb423

Please sign in to comment.