Docker in Docker

Docker in Docker

2 months ago (04-24) Views: 12 Comments: 0

Docker technology is currently widely used in DevOps. We need to package the test or build code and automation scripts into Docker images and deploy them in various operating environments.In CI/CD, we use some CI/CD servers, such as Jenkins and GoCD, to build and deploy our applications to automate CI/CD.Now, many CI/CD servers are actually made into a Docker Image running on a real physical machine. At this time, we actually need to build and run our CI/CD server's Docker container. Docker image, which involves the "Docker run Docker" problem. A very natural idea is, do we need to install a Docker Daemon and Docker command in the CI/CD server image? This is a very natural idea, but I always feel that installing Docker in the Docker image is a bit lame. In fact, we do not need to install Docker on the CI/CD server. Instead, we directly borrow from the host machine. So, we need to start "Docker in Docker" like this:Docker adopts the C/S architecture. Docker's successful operation requires the support of Docker Daemon and Docker Client (client). When we run some commands such as docker build, we actually need Docker Client to connect to Docker Daemon to

[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

3 months ago (03-27) Views: 62 Comments: 0

One, Mjpg-streamer open source library Due to the development of a real-time video push system, it may involve the implementation of a streaming media server, but it can be realized quickly and easily through the "MJPG-streamer" open source tool."MJPG-streamer" is a mature, lightweight video server software that can be used to capture camera images and publish them on real-time video servers.MJPG-streamer adopts the modularized design idea, including input module and output module. The input module defines the input source, such as camera, file, etc. MJPG-streamer then outputs the video through the output module, such as http output and other network output. Local output of the file [8]. This article uses a binocular camera supporting UVC protocol as the input source of image data. The http protocol is used to push the video stream. Therefore, the components involved are the output_http output component and the input_uvc input component.With MJPG-streamer, it is easy to push the binocular camera video on the pcDuino to the http protocol. Second, to achieve and test The use of MJPG-streamer library to develop a real-time image transmission system is convenient and efficient. Its installation command is as follows: After the installation is complete, you can use the

[4] Communication instruction design – smart car under Pcduino platform

[4] Communication instruction design – smart car under Pcduino platform

3 months ago (03-27) Views: 16 Comments: 0

First, the command packet protocol design In the remote control smart car system, the remote client controls the smart car through command communication.In the design of this paper, only the speed direction control instruction is involved. In order to consider the scalability of the system: because there may be more types of instructions for subsequent requirements, this article has designed the instruction code for the instruction data. The instruction consists of the instruction code and the instruction data area; consider To the client and the server to better handle the instruction, the instruction word length is 32 bits, and the int data type word length is equal to the int data processing when the server and the client socket socket to send and receive data .In studies similar to this design, char characters are often used to control the direction. I think it is inadequate. Because a char type can quantify and access data, it can save network traffic and ensure real-time performance.   Instruction code (4bit) Command data area (28bit)   When the command code is 1, the speed direction control command of the sending vehicle is indicated, and the command data package is a schematic diagram:   0

[3] System architecture and assembly – Smart car under Pcduino platform

[3] System architecture and assembly – Smart car under Pcduino platform

3 months ago (03-27) Views: 19 Comments: 0

First, system design In this paper, the smart car communication control system is mainly composed of a Freescale car model, a pcDuino development board and its external module, a remote control client (smartphone), and a wireless LAN device. The schematic diagram of the system structure is as follows: In order to use the pcDuino to control the motors and servos of the smart car model, this article uses the L298P expansion module to plug into the Arduino compatible hardware interface on the pcDuino motherboard. Due to the mismatch of the L298P and pcDuino motherboard levels, the middle part is completed through the T board module. Level shifting.The binocular camera accesses the pcDuino through the USB interface. Since the pcDuino is equipped with a wireless WIFI module, it can complete the networking through the wireless LAN and external remote clients to achieve remote communication and control. In order to use the smart phone client to control the smart car system, this design uses a smart phone connected to the local area network to send commands to the smart car system. The system structure is a typical C/S (client-server) structure, which means The smart car pcDuino development board serves as the server,

"2018 China Internet Company Overtime Report Non-Professional Edition"

"2018 China Internet Company Overtime Report Non-Professional Edition"

3 months ago (03-22) Views: 10 Comments: 0

Inadvertently opening the blog's access data, suddenly found several interesting conclusions, "big data" shows: 1. The periodic troughs are Sundays and Sundays, because everyone is generally on weekends; 2. February 14 to February 22 have a long valley, because the Spring Festival holiday 3. Visits on Saturdays of the same week are almost exceptionally higher than Sundays 4. Chinese New Year is lower than Saturday and Sunday Based on some facts, accessing this blog is mostly domestic programmers. The following conclusions can be drawn: 1. Chinese internet IT companies tend to choose to work overtime on Saturday 2. In the Spring Festival, we should not work overtime. This time the traffic is about the basic flow. We can divide the number of visits over the weekend (E) minus the number of visits during the Spring Festival (S), and divide it by the weekly peak (MAX) minus the Spring Festival. Calculate the overtime rate (E - S) / (MAX - S) for the weekend, import the data and calculate it over the average: Overtime rate for China IT industry: 21.53% on Saturday, 17.22% on Sunday

[1] Overview – smart car under the pcduino platform

[1] Overview – smart car under the pcduino platform

3 months ago (03-19) Views: 19 Comments: 0

  This article uses a Freescale automotive model equipped with a DC motor and an analog circuit control servo to simulate a real car.The PcDuino development board on the car model is equipped with the Ubuntu operating system and is compatible with the Arduino extension to implement hardware control. The binocular camera connected to the development board can capture two channels of video and transmit it in real time over the network to provide support for binocular vision ranging. At the same time, it has developed a "Visual Aided Navigation System" Android-side application that can remotely view the live conditions around the smart car and control the car. I. Introduction The emergence of Arduino's open source hardware platform has greatly improved the efficiency of hardware development. Even software programmers without any hardware infrastructure can write simple code to control the hardware by using the open source library provided by Arduino, greatly reducing the use of Arduino platform. The difficulty of this design. Arduino also offers a variety of expansion boards. The Arduino ecosystem is very powerful. Many developers have developed peripheral expansion modules for Arduino, such as motor modules, infrared control modules, and touch modules. These modules greatly enhance the

Software is not only so easy to develop

Software is not only so easy to develop

1 years ago (2017-03-09) Views: 8 Comments: 0

Many "aspiring" or programmers who love to program may be eager for full-stack engineers.The full stack is a kind of geek spirit. It has a strong interest in every programming language and every development platform of the software and is willing to work hard. Full stack engineers should have extensive contact with all aspects of the software. With deep insights into the software, this broad and deep insight will allow us to develop applications more efficiently. People around us often describe the full stack as "I'm familiar with C/C++, java; swift, Ruby, and can develop IOS, Android, Windows applications, Web front-end back-end.Used these frameworks:..." Full-stack periodic table from xebialabs Yes, before I contacted ThoughtWorks, my definition of the full stack is like this, what languages ​​are "will", at least written, and development experience on each platform.Under this definition, I will be proud to say that I am a full stack engineer.Even haha, in addition to the above, I also developed software on the hardware platform (Arduino), I used PS for their own Android client interface design, icon, drumstick over the icon font.Yeah, I'm proud to think about it. I suddenly found that I would have something like that.(Of course, rationally

Base64 support in React Native

Base64 support in React Native

1 years ago (2017-03-08) Views: 13 Comments: 0

Most recent guests have used React Native's own blog client. When the client invokes the WordPress Rest API, some operations require HTTP authentication. In HTTP authentication, the "Authorization" field is added to the header of the HTTP request. The contents of the field when the user name: base64 encoding of the password Environmental dependence The Base64 codec algorithm is supported in the Nodejs buffer component. First we need to run the command line to install the buffer dependencies in the root directory of the React Native project: npm install buffer --save After installing, the app.json in the root directory of React Native The dependencies will automatically add the following one: Base64 support in React Native How to use Introduce coding decoding   Buffer project home page: For more ways to use buffers, refer to the Buffer home page: https://github.com/feross/buffer

Ubuntu using Java CV to get binocular camera images

Ubuntu using Java CV to get binocular camera images

1 years ago (2017-03-06) Views: 16 Comments: 0

The graduation project is to do a measurement of the object's distance through a binocular camera, and then control the model car to avoid the near obstacles. Therefore, the image of the binocular camera mounted on the model car needs to be transmitted and sent to the computer for double. The distance measurement algorithm calculates the distance, and the computer sends the calculated result to the car. The car controls the direction of travel so as to avoid obstacles.The Pcduino development board is used on the car, the Ubuntu system is installed, the Arduino expansion board is externally inserted, and the hardware part of the car is connected. After binocular cameras bought from Taobao, the way to get binocular camera images using java cv is similar to that of monocular cameras.The difference is that in order to separate the binocular cameras, the resolution parameters in the code need to be set.If you do not set any resolution, the effect is as follows: Binocular camera screen It is not familiar, we see this in a movie theater watching 3D movies without glasses.For developers, it's obviously not a good idea to mix two images together. You need to make the following settings

How to free Android phone storage

How to free Android phone storage

1 years ago (2017-02-23) Views: 8 Comments: 0

The Android application will generate some data during operation, such as image cache, database file, configuration file and so on.We may have such a need to clear the cached data in the application when we develop it, allowing the user to choose to delete the data generated within the application. This is a more user-friendly design point.Excessive cache will occupy the storage space of the mobile phone and it is said that it will also reduce the IO performance of the mobile phone. Here's a design that clears the cache provided by the Shum Book Android APP: So what data does the Android application generate in operation?Where are they stored?Then we implement the clean function according to the location of the generated data First of all, simply talk about Android's four data storage methods 1, SharePreferenc A lightweight data storage method is actually based on the "key-value" key-value pair data stored in the XML file; it is usually used to store some configuration information of the program. SharePreference storage directory: It is stored in the "data/data/package name/shared_prefs directory. SharePreference modify and store data Get the SharedPreference object according to the Context's getSharedPrerences(key, [pattern]) method; Use the editor() method of SharedPreference

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW