newspaper-fastcgi-ticket-checker

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Mock of license module, not ticket issuer

    • -0
    • +63
    /TicketDesignScratch.md
    • -1
    • +1
    /mockticketservicecontentresolver/docker.properties
    • -22
    • +0
    /mockticketservicecontentresolver/src/test/java/MockTicketContentGeneratorTest.java
    • -0
    • +18
    /ticketissuer/Dockerfile
    • -0
    • +15
    /ticketissuer/context-default.xml
bitrepository-work: Now pulls unconfigured reference from Nexus into a container.

    • -0
    • +24
    /bitrepository/Dockerfile
Explained nexus3 docker instance configuration in docker-settings.xml

Docker CE support. All major components now mocked as docker containers.

Work with Docker CE 17.09/docker-compose 1.16.1/Nexus mirror on 172.18.95.105.

Upgraded my PC to Ubuntu 17.10 and found that the new stuff I learned about

on DockerCon 2017 EU did not work with the docker I had, so everything had

to be upgraded to a newer version than the one coming with Ubuntu. As

maven in docker forgets everything I got a Nexus3 running locally and found how

to make the dockerized maven use it. Now the dockers can launch, and can see

each other but there is not yet any material the ticket checker can validate.

    • -0
    • +15
    /docker-settings.xml
    • -9
    • +27
    /mockticketservicecontentresolver/Dockerfile
    • -0
    • +2
    /mockticketservicecontentresolver/docker.properties
SNAPSHOT: Got mocksumma/Dockerfile to work. Maven proxy badly needed.

    • -1
    • +2
    /mockticketservicecontentresolver/Dockerfile
SNAPSHOT: Introducing Maven builds to Dockerfiles as seen on DockerConEU 2017

Unfortunately we use a parent pom which cannot be resolved when the Docker

daemon starts building. More research is needed. A pre-populated Maven

repository as these are completely empty?

    • -4
    • +15
    /mockticketservicecontentresolver/Dockerfile
SNAPSHOT: About to make 1.pl do all the necessary work to make valid and _checked_ links.

    • -0
    • +71
    /docker/cgi-bin/1.pl
"for.pl" will present a clicky-page for a domsID. Found ContentResolver needs mocking too. (Runs with openjdk-9 image)

    • -0
    • +57
    /docker/cgi-bin/for.pl
    • -0
    • +2
    /docker/webprotected/index.html
    • -0
    • +3
    /docker/webroot/index.html
    • -0
    • +1
    /mocksumma-ide/src/main/resources/0.request
    • -0
    • +1
    /mocksumma-ide/src/main/resources/0.response
  1. … 15 more files in changeset.
Created separate maven modules for IDE launchers.

    • -0
    • +62
    /mocksumma-ide/pom.xml
    • -1
    • +0
    /mocksumma/src/main/resources/0.request
    • -1
    • +0
    /mocksumma/src/main/resources/0.response
    • -0
    • +1
    /mocksumma/src/test/resources/0.request
    • -0
    • +1
    /mocksumma/src/test/resources/0.response
    • -0
    • +46
    /mockticketservice-ide/pom.xml
    • -0
    • +4
    /mockticketservice-ide/src/main/resources/mockticketservice-ide.properties
added easy-to-remember domsId: doms_aviser_page:uuid:11111111-1111-1111-1111-111111111111

module renamed to configuration-map. Improved error handling. Initial adding of web pages.

    • -0
    • +38
    /configuration-map/pom.xml
    • -0
    • +2
    /docker/protected/index.html
Reworked DPA ConfigurationMap to use Optional.

After showing the configuration+run harness in DPA (which was used as-was here) to ABR, we agreed

that it made sense to eventually use this approach in other projects, but TRA found it a bit

premature to do it now. After reading

https://dzone.com/articles/requirements-for-a-configuration-library TRA found that the

"Optional" approach could make things much cleaner and made a trimmed-down version

for this project.

    • -0
    • +32
    /configurationmap/pom.xml
ticketservice java 8, all others java 9. ticketservice now stores full ticket in memcached.

Added MockTicketContentGenerator to create the value to go in memcached.

    • -0
    • +22
    /mockticketservice/src/test/java/MockTicketContentGeneratorTest.java
Described functionality better. Marked old sections with FIXME.

mockticketservice now takes mockticketservice-docker.properties argument.

    • -0
    • +4
    /mockticketservice/src/main/resources/mockticketservice-docker.properties
Removed "ro" attribute from jar file volumes as they fail on MacOS 10.13.

Message was the rather cryptic

```

ERROR: for mockticketchecker Cannot start service mockticketchecker: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"/Users/tra/git/newspaper-fastcgi-ticket-checker/mockticketservice/target/mockticketservice-1.0-SNAPSHOT-jar-with-dependencies.jar\\\" to rootfs \\\"/var/lib/docker/overlay2/57f8cdfc76dcc9350cc5f502c1988ec3f9409206fc618bdf3da32d2ba96a9fd7/merged\\\" at \\\"/var/lib/docker/overlay2/57f8cdfc76dcc9350cc5f502c1988ec3f9409206fc618bdf3da32d2ba96a9fd7/merged/mockticketservice.jar\\\" caused \\\"not a directory\\\"\""

: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

```

SNAPSHOT: mock ticket service now registers "BAD TICKET" under ticket key in memcached found using "memcached.location".

SNAPSHOT: For now use configuration mechanism from dpa-harness. Jersey HK2 Injection works.

    • -0
    • +4
    /mockticketservice/src/main/resources/mockticketservice-ide.properties
SNAPSHOT: Making MockTicketService store ticket in memcached (needs @Named String @Inject to work)

MockTicketService now in docker-compose.yml. Does not store ticket info in memcached instance yet.

Initial implementation of MockTicketService using Jersey.

    • -0
    • +7
    /mockticketservice/Dockerfile
    • -0
    • +64
    /mockticketservice/pom.xml
Endpoint.publish must bind to a "0.0.0.0" address for host access to work.

When using a localhost address it only binds to the "127.0.0.1" interface,

which is ok when doing requests locally, but for network access to work

all interfaces must be bound to. Hence the 0.0.0.0 binding.

Added mocksumma to docker-compose.yml. Host cannot see web service.

Using openjdk 9 images to test the new release. For some reason docker-compose

does not forward the web service endpoint port to the host, which must be

solved. Question opened: https://stackoverflow.com/q/46546430/53897

Reformatted Perl sources with IntelliJ. Added formatter configuration instructions to README.md.

    • -24
    • +28
    /fcgid-access-checker/CheckTicket.pm
    • binary
    /gr/intellij-2017-perl-code-style.png
Initial implementation of "return known response for known request" with test.

    • -0
    • +1
    /mocksumma/src/main/resources/0.request
    • -0
    • +1
    /mocksumma/src/main/resources/0.response
Initial mocksumma mock service to provide prerecorded responses to known Summa queries.

mars is now by IP-number so we do not have to use internal DNS servers

statistics.py is now invoked correctly. Log files still missing so CSV files are empty.

    • -0
    • +4
    /docker/newspaper-statistics.conf
    • -0
    • +3
    /docker/newspaper_statistics.py.cfg
    • -0
    • +353
    /docker/original-httpd.conf