GithubHelp home page GithubHelp logo

khaledsharif / cesium-satellites Goto Github PK

View Code? Open in Web Editor NEW
57.0 4.0 19.0 18 KB

View the orbit of satellites in a Cesium viewer, derived from a two line element list

License: Apache License 2.0

HTML 14.21% JavaScript 78.69% CSS 2.09% Dockerfile 5.00%
cesium satellite orbit two-line-element-sets docker nginx

cesium-satellites's Introduction

Cesium Satellites Viewer

View the orbit of satellites in a Cesium viewer, derived from a two line element list

License

Screenshot 1

How to run locally

git clone https://github.com/KhaledSharif/cesium-satellites.git
cd cesium-satellites
docker build -t cesium:satellites .
docker run -d -p 8080:80 cesium:satellites

In your browser, navigate to http://localhost:8080/.

For the brave of heart, there also exists an Alpine version of the container. See Dockerfile.alpine for more information.

cesium-satellites's People

Contributors

khaledsharif avatar lukewendling avatar pncbose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cesium-satellites's Issues

Needs updating

I get numerous warnings/errors due to what appears to be obsolete packages/definitions/usages. While knowing almost nothing about js and how to load it, I have modified the Dockerfile as follows

FROM nginx:stable
RUN  apt update && apt install -y curl gnupg wget
RUN  curl -sL https://deb.nodesource.com/setup_19.x | bash -
RUN  apt install -y nodejs
RUN  mkdir /frontend && mkdir /frontend/src && mkdir /frontend/dist
ADD  src /frontend/src/
COPY package.json /frontend
COPY webpack.config.js /frontend
RUN  cd /frontend && npm install --legacy-peer-deps file-loader && npm run build
RUN  cp -r /frontend/dist/* /usr/share/nginx/html
ENTRYPOINT \
     wget -P /usr/share/nginx/html http://celestrak.com/NORAD/elements/stations.txt \
     && nginx -g "daemon off;"

This gets perhaps a hundred or more warnings and at least two errors. With a very wild guess I'd say that the webpack.node.js needs to be overhauled, but I haven't the slightest idea how to do that.

The web page shows empty (white) web page (just the menu icon on the top left)

Hello Mr.Sharif. Hope you can be of help.

  1. Setup & config info
    OS: Ubuntu 16.04
    Browser: Chrome 68.0.3440.106 (Official Build) (64-bit)
    Docker: version 18.09.3, build 774a1f4

  2. After downloading & unzip the file,
    $ docker build ... command finished without any errors
    $ docker image, shows the entry for the image,
    $ docker run -d -p 8080:80 cesium:satellites
    fafe1f86c70aef7636da1a88bc5a0c88668cca87ef2eb9e25b9116e6ab11dca0
    $ docker container list
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    fafe1f86c70a cesium:satellites "/bin/sh -c 'wget -Pā€¦" 52 seconds ago Up 49 seconds 0.0.0.0:8080->80/tcp gracious_ramanujan

Opening the Chrome browser with URL localhost:8080 displayes a web page

  • in white color, split into two horizontal frames; the top frame being a narrow one with a menu icon (three short black horizontal) at the left. The bottom bigger frame empty.
  • clicking on the menu, splits the white page into two vertical frames; the left frame has the word 'Satellites' on the top, with nothing else displayed.
  1. Below is the 'docker logs' output:
    $ docker logs fafe1f86c70a
    --2019-03-03 04:44:17-- http://celestrak.com/NORAD/elements/stations.txt
    Resolving celestrak.com (celestrak.com)... 75.151.179.89
    Connecting to celestrak.com (celestrak.com)|75.151.179.89|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 9072 (8.9K) [text/plain]
    Saving to: '/usr/share/nginx/html/stations.txt'

    0K ........ 100% 3.46M=0.002s

2019-03-03 04:44:18 (3.46 MB/s) - '/usr/share/nginx/html/stations.txt' saved [9072/9072]

172.17.0.1 - - [03/Mar/2019:04:44:28 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"
172.17.0.1 - - [03/Mar/2019:04:44:28 +0000] "GET /bundle.js HTTP/1.1" 304 0 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"
2019/03/03 04:44:29 [error] 8#8: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/"
172.17.0.1 - - [03/Mar/2019:04:44:29 +0000] "GET /favicon.ico HTTP/1.1" 404 571 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-"

I would appreciate hearing back from you.

Best regards,
dforouhari

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.