Skip to content

Commit

Permalink
DEV 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Its4Nik committed Aug 24, 2024
1 parent ef25138 commit fd5f4c8
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 69 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/
/build
/.github
26 changes: 26 additions & 0 deletions .github/workflows/build.image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

permissions:
packages: write
contents: read

jobs:
build-main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout repository

- uses: pmorelli92/github-container-registry-build-push@2.2.1
name: Build and Publish latest service image
with:
github-push-secret: ${{secrets.GITHUB_TOKEN}}
docker-image-name: dockstat
docker-image-tag: latest # optional
dockerfile-path: Dockerfile # optional
build-context: . # optional
build-only: false # optional
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/debug.log
/node_modules
/node_modules
/build
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node AS build

WORKDIR /build

COPY . /build

RUN npm i && \
npm run build

FROM build as production

WORKDIR /app

RUN mv /app/build /app && \
rm -rf /build

EXPOSE 3000
77 changes: 13 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,19 @@
# Getting Started with Create React App
# Dockstat

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Dockstat is a monitoring frontend powered by the DockStatAPI.

## Available Scripts
It shows usage statistics like CPU, RAM and Nwtwork usage.

In the project directory, you can run:
## WORK IN PROGRESS

### `npm start`
- Custom Container Logos
- Custom Themes
- New UI
- More advanced sub pages.

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
## Installation using Docker:

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
```yaml
name: DockStat
...
```
3 changes: 0 additions & 3 deletions public/icons/minecraft.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CircularProgress from '@material-ui/core/CircularProgress';
import { toast, ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

const apihost = 'http://localhost:7070';
const apihost = process.env.API_URL;

function App() {
const [data, setData] = useState({});
Expand Down

0 comments on commit fd5f4c8

Please sign in to comment.