7aitsev / jvs Goto Github PK
View Code? Open in Web Editor NEWJSON Validation Service
License: MIT License
JSON Validation Service
License: MIT License
Every time you put a binary library in a git repo, one kitten is crying somewhere.
Good job, go ahead and implement task 2.
$ docker build -t validation-service https://raw.githubusercontent.com/MaksimZaitsev/jvs/master/Dockerfile && docker run -t --rm -p 80:80 validation-service
Downloading build context from remote url: https://raw.githubusercontent.com/MaksimZaitsev/jvs/master/Dockerfile 400 B
Downloading build context from remote url: https://raw.githubusercontent.com/MaksimZaitsev/jvs/master/Dockerfile 400 B
Sending build context to Docker daemon 2.048 kB
Step 1/10 : FROM openjdk:8u131-jdk-alpine
8u131-jdk-alpine: Pulling from library/openjdk
1160f4abea84: Pull complete
b1b3e089ad5b: Pull complete
4220f7d94f04: Pull complete
Digest: sha256:01655aeb8f29002d40e75d25144d0b61b6e455f9d6469b4016eb56c5f43dbb99
Status: Downloaded newer image for openjdk:8u131-jdk-alpine
---> a99736768b96
Step 2/10 : MAINTAINER Maxim Zaitsev
---> Running in ee218fac6481
---> 4d7908d3134c
Removing intermediate container ee218fac6481
Step 3/10 : RUN apk --update add git && rm -rf /var/lib/apt/lists/* && rm /var/cache/apk/* && mkdir /git
---> Running in abd407a4e013
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/5) Installing libssh2 (1.8.0-r1)
(2/5) Installing libcurl (7.57.0-r0)
(3/5) Installing expat (2.2.0-r1)
(4/5) Installing pcre (8.41-r0)
(5/5) Installing git (2.13.5-r0)
Executing busybox-1.26.2-r9.trigger
OK: 119 MiB in 56 packages
---> aef18d691971
Removing intermediate container abd407a4e013
Step 4/10 : WORKDIR /git
---> 7d2a68bd146b
Removing intermediate container d53963195a11
Step 5/10 : ENV PATH $PATH:/usr/local/bin/
---> Running in 368ba11425e0
---> 5d7de0a75a24
Removing intermediate container 368ba11425e0
Step 6/10 : COPY docker-entrypoint.sh /usr/local/bin/
lstat docker-entrypoint.sh: no such file or directory
$ curl -s --data-binary @bad.json http://localhost
{
"errorCode": 1,
"errorMessage": "Unterminated array",
"errorPlace": "at line 59 column 28 path $.web-app.servlet[4]",
"resource": "json",
"requestId": 2
}
Resource should be bad.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.