Giter Site home page Giter Site logo

java-touch's Introduction

java-touch

Reproduction

~/code/java-touch master* 12s
❯ docker build -t touch .
Sending build context to Docker daemon  44.03kB
Step 1/8 : FROM java
 ---> d23bdf5b1b1b
Step 2/8 : COPY Touch.java Touch.java
 ---> 2a60dabd99ad
Step 3/8 : RUN javac Touch.java
 ---> Running in 1e2c00efa407
Removing intermediate container 1e2c00efa407
 ---> a236913f5c40
Step 4/8 : RUN touch file && chmod 666 file
 ---> Running in 0b17acf58bfd
Removing intermediate container 0b17acf58bfd
 ---> 45c51b29e64e
Step 5/8 : RUN adduser --disabled-password --gecos "" user
 ---> Running in 8c0acc3ef7ba
Adding user `user' ...
Adding new group `user' (1000) ...
Adding new user `user' (1000) with group `user' ...
Creating home directory `/home/user' ...
Copying files from `/etc/skel' ...
Removing intermediate container 8c0acc3ef7ba
 ---> b10855d65779
Step 6/8 : USER user
 ---> Running in a1dd53b4fac2
Removing intermediate container a1dd53b4fac2
 ---> 37a0b56e03ed
Step 7/8 : ENTRYPOINT ["java", "Touch"]
 ---> Running in d01e342d58ab
Removing intermediate container d01e342d58ab
 ---> 1f254da0f2a8
Step 8/8 : CMD ["bad"]
 ---> Running in 110e6ea9c51d
Removing intermediate container 110e6ea9c51d
 ---> b7ad8b3c45d9
Successfully built b7ad8b3c45d9
Successfully tagged touch:latest

~/code/java-touch master* 2m 16s
❯ docker run --rm -it touch bad
1543517620000
Exception in thread "main" java.lang.Exception: Could not update time stamp for file
        at Touch.BadTouch(Touch.java:24)
        at Touch.main(Touch.java:14)

~/code/java-touch master*
❯ docker run --rm -it touch good
1543517620000
1543517686000

java-touch's People

Contributors

hinshun avatar

Watchers

 avatar

Forkers

thexdesk

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.