投稿時間:2023-08-17 18:22:15 RSSフィード2023-08-17 18:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ 国土交通省 全国10ヵ所の運輸支局等の窓口で「AIさくらさん」活用の実証実験 案内とプリンタ連携 来訪者の利便性向上と業務効率化を実現へ https://robotstart.info/2023/08/17/ai-sakurasan-with-printer.html 2023-08-17 08:08:08
AWS lambdaタグが付けられた新着投稿 - Qiita [AWS Lambda + Python + NHK番組表API]自分好みの番組リストをSlackメッセージで受け取るものを作った https://qiita.com/Istiophorus/items/03462d567149dad29c44 awslambdapythonnhk 2023-08-17 17:34:03
python Pythonタグが付けられた新着投稿 - Qiita 【実践XAI②】SHAPによるモデルの説明 https://qiita.com/Matsuda_Takumi/items/35dfc4dcc785af000750 機械学習 2023-08-17 17:59:29
python Pythonタグが付けられた新着投稿 - Qiita 【Python】発音で検索できるタイ語辞書アプリを作った https://qiita.com/konbraphat51/items/ed11678d10cc5aeea9f9 辞書 2023-08-17 17:50:55
python Pythonタグが付けられた新着投稿 - Qiita LAN内のraspiのipをudp経由で取得する https://qiita.com/yoshi623/items/600d0086e61880d9a428 raspi 2023-08-17 17:44:06
python Pythonタグが付けられた新着投稿 - Qiita slackbot 3秒ルールの対応策 https://qiita.com/totoaoao/items/e87b1541f2c387878945 chatgpt 2023-08-17 17:43:59
Linux Ubuntuタグが付けられた新着投稿 - Qiita Ubuntu 22.04 に node v18 をインストールする https://qiita.com/okadabasso/items/2147f7cbbfa5d2c6863c deprecat 2023-08-17 17:30:32
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】SAPro更新してきた https://qiita.com/TS_Koike/items/5e59ba6ff60b16516a55 beanstalk 2023-08-17 17:48:56
AWS AWSタグが付けられた新着投稿 - Qiita AWS Cloud Practitionerの勉強法 https://qiita.com/mabby/items/a798752f0e567940b1c2 awscloudpractitioner 2023-08-17 17:42:31
AWS AWSタグが付けられた新着投稿 - Qiita AWS ECS – CodePipeline + CodeDeploy での appspec / taskdef 関係のエラー https://qiita.com/YumaInaura/items/2e94b1f1be817184b6ed appspec 2023-08-17 17:18:39
Docker dockerタグが付けられた新着投稿 - Qiita オンプレにLDAPで認証できるWebコンソール付きのレジストリサーバーを立てました https://qiita.com/wakoit/items/e3f1d4642dafba256044 dockerhub 2023-08-17 17:15:12
技術ブログ Developers.IO Lookerでパレート図を作ってみた #Looker https://dev.classmethod.jp/articles/looker-graph-pareto-chart-step/ ikumi 2023-08-17 08:58:15
技術ブログ Developers.IO SRD 対応インスタンスへのボリュームアタッチ時「vol-xxxxxxxxxxxxxxxxx is already attached to an instance」エラーの対処法 https://dev.classmethod.jp/articles/tsnote-ebs-ec2-srd-unavailable-modify-volume/ readyattachedtoaninstance 2023-08-17 08:52:47
海外TECH DEV Community Create your own URL shortener! https://dev.to/technology-schaechner/create-your-own-url-shortener-5fed Create your own URL shortener Today we come to a very interesting topic in the field of HomeServer If you like our articles we would appreciate a Like amp Comment️We want to install our own URL shortener on our HomeSever This means that shortened links can then be reached under your domain desired name There are several options here e g you can also generate the shortened links randomly or provide them with numbers But more on that You can do it Or do you like to test it first Then try it belowurl schächner de DatabaseFirst we create the databases and users again To do that let s switch to firstmysqland then create the database withCREATE DATABASE yourls and then the user withCREATE USER yourlsuser localhost IDENTIFIED BY password and the corresponding password We ll give this to youGRANT ALL PRIVILEGES ON yourls TO yourlsuser localhost the permissions and load them as wellFLUSH PRIVILEGES new Now we can do thatEXIT leave again Download YourlsNow let s switchcd tmpInto the temporary directory we also download YOURLS withsudo wget We ll unpack thatunzip zipand move it to the var www directorysudo mv YOURLS var www If we want we can also add the foldercd var www sudo mv YOURLS yourlsrename config fileNow we have to go to the directorycd yourls userswitch and copy the config file there withcp config sample php config phpWe now have to edit this withsudo nano config phpHere we need to adjust the following values define YOURLS DB USER yourlsuser In the line above we need to enter our database user In the following line the database passworddefine YOURLS DB PASS password and the name of the databasedefine YOURLS DB NAME yourls Heredefine YOURLS SITE yourls example com we have to enter our desired domain With ctrl w we can also search for the following value yourls user passwords A user and a password are already specified below which must be changed to the desired values PermissionsNow we need to set the permissions again withsudo chown R www data www data var www yourlsandsudo chmod R var www yourls Apache config fileWe have to take these with ussudo nano etc apache apache confedit There we search again with ctrl wAllowOverrideWe need all of these values except for the area with lt Directory var www gt fromAllowOverride NonetoAllowOverrideAlladjust We insert the following block above the area with lt Directory var www gt lt Directory var www yourls gt Options Indexes FollowSymLinks AllowOverrideAll Require all granted lt Directory gt virtual hostNow we create a virtual host withsudo nano etc apache sites available yourls confand add the following content lt VirtualHost gt ServerName yourls example com DocumentRoot var www yourls lt Directory var www yourls gt Require all granted Options Indexes FollowSymLinks AllowOverrideAll Order allow deny Allow from all lt Directory gt ErrorLog APACHE LOG DIR error log CustomLog APACHE LOG DIR access log combined lt VirtualHost gt Of course as always we have to take this file with ussudo aensite yourls confactivate Now we also start the web serversudo service apache restartandsudo systemctl restart apache servicenew Now we can go into the browser to configuration This can be done by opening the domain only if we have defined an A record or AAAA record admin or ip admin in the browser Here we go PS Do you want a certificate for this instance This is what you get with our article Make NextCloud accessible from the Internet and an SSL certificate or https for our cloud and other web installations SchächnerThanks for reading Schächner 2023-08-17 08:48:52
海外TECH DEV Community How to Become a Web3 Engineer: A Beginner’s Guide https://dev.to/drsavvina/how-to-become-a-web3-engineer-a-beginners-guide-2ae2 How to Become a Web Engineer A Beginner s GuideEmbarking on the journey to become a Web Engineer is an exciting one Web refers to the decentralized next generation internet which is built on emerging technologies like blockchain decentralized applications dApps and smart contracts As a Web Engineer you ll be at the forefront of this new era of internet shaping its development and revolutionizing the digital landscape If you want to take your career to new heights follow our guide on how to become a Web Engineer Step Understand Web Concepts and TechnologiesThe first step in your journey is to familiarize yourself with the core concepts and technologies underpinning Web Blockchain A decentralized digital ledger technology that forms the backbone of cryptocurrencies and decentralized applications Smart contracts Self executing contracts that run on the blockchain enabling transactions without the need for intermediaries dApps Decentralized applications which use blockchain as their backend to enable peer to peer transactions decentralizing the data storage and management Decentralized Finance DeFi A financial system built using smart contracts which aims to make financial services more accessible transparent and efficient In addition learn about popular Web platforms such as Ethereum Polkadot and Solana to understand their protocols consensus mechanisms and the unique advantages they bring to the table Step Acquire Technical Web SkillsBecoming well versed in various programming languages and tools is essential for a Web Engineer Focus on learning the following Solidity A high level language for creating smart contracts on Ethereum Master the principles of contract oriented programming and understand how to create secure and efficient smart contracts Rust This is a systems programming language gaining popularity due to its performance safety and support for creating smart contracts on platforms like Polkadot and Solana JavaScript Mastering JavaScript enables you to build intuitive and visually appealing interfaces for your dApps as well as interact with various blockchain APIs Besides programming languages build a strong foundation in cryptography distributed systems and data structures like Merkle trees and hashgraphs Step Gain Hands On Experience and Work on Real ProjectsTheory alone is insufficient Build your own Web projects to put your skills into practice Develop a simple dApp Create a basic dApp such as a token voting system or a marketplace to understand the lifecycle of a smart contract from deployment to interaction Participate in hackathons Join hackathons to further hone your coding skills receive feedback and network with fellow Web enthusiasts Contribute to open source projects Contribute to repositories on platforms like GitHub or GitLab where you can improve existing code and help maintain the infrastructure around existing dApps and smart contracts Working on real projects lets you experience various development challenges firsthand making you a more seasoned Web Engineer Step Stay Updated and Adapt to New TechnologiesWeb is a rapidly evolving field so continuous learning is vital to stay ahead of the curve Here are some tips to remain up to date Follow industry leaders Subscribe to newsletters and social media accounts of Web pioneers like Vitalik Buterin and Gavin Wood to learn from their insights Participate in online discussions Engage in the Web community through forums like Reddit Discord and Telegram to share knowledge and discuss the latest trends and developments Attend conferences and workshops Participate in events such as Devcon or Web Summit to learn about emerging technologies meet industry leaders and gain practical experience through hands on workshops By staying in touch with the latest advancements you can ensure your skills remain relevant and in demand Step Expand Your Portfolio and NetworkCreating a portfolio showcasing your Web projects and demonstrating your range of skills will set you apart from the competition Ensure your portfolio includes not just the completed projects but also the code wireframes and documentation to highlight your skillset Networking is equally crucial Establish connections with peers attend meetups and join developer organizations to expand your professional network These networks can open doors for potential job opportunities collaborations or mentorships Step Search for Job OpportunitiesOnce you ve built a diverse portfolio it s time to start looking for Web Engineer positions Explore roles within blockchain startups established tech companies or even government organizations interested in adopting Web technology Be prepared to demonstrate your expertise through technical interviews and coding challenges Remember persistence and dedication are key Continue refining your skills working on personal projects and networking until you ve found your dream Web Engineer role In conclusion becoming a Web Engineer is an exciting and rewarding career path with ample opportunities for growth and impact Follow the action plan above embrace the challenges and be prepared to excel in this groundbreaking field With a passion for learning and determination to succeed the future of the decentralized internet awaits your touch Follow me and talentslab io for career tips and exciting opportunities in Web 2023-08-17 08:46:40
海外TECH DEV Community This Week In React #156: Server Actions, React Falls Behind, Expo Builds, Suspense Throttling, Obsidiosaurus, Expo DevTools... https://dev.to/sebastienlorber/this-week-in-react-156-server-actions-react-falls-behind-expo-builds-suspense-throttling-obsidiosaurus-expo-devtools-2mga This Week In React Server Actions React Falls Behind Expo Builds Suspense Throttling Obsidiosaurus Expo DevTools Hi everyone This week we ve got many articles from the React and React Native community and the latest Expo Launch Party announcements Some articles are very long and I didn t have time to read them all I ve been too busy creating the newsletter s Instagram account I plan to post visual React news and tips there including the best memes I couldn t include here I ve also removed the Jobs section which didn t add much I ll see later how to reintegrate it For React Native devs React Native EU Wrocław Poland September is offering us a discount on admissions Subscribe to the official newsletter to receive an email every week SponsorEnterprise Grade APIs for Feeds Chat amp Video Stream is the maker of enterprise grade APIs and SDKs that help product and engineering teams solve two common problems at scale in app chat and social activity feeds With Stream developers can integrate any type of messaging or feed experience into their app in a fraction of the time it would take to build these features from scratch Stream Chat makes it easy for developers to integrate rich real time messaging into their applications Stream provides robust client side SDKs for popular frameworks such as React  React Native Expo Flutter Android Angular Compose Unreal and iOS Unlock enterprise grade features functions and UI components completely free for your startup or side project with the Maker Account Try the new React Video tutorial ️ReactCan React Server Actions finally fix forms A great introduction to Server Actions a forthcoming React feature that has already been integrated into Next js experimental Includes a short tutorial on uploading a video with a title Server Actions can return a response to give feedback to the user but it s clear that this isn t yet an ideal DX In my opinion Server Actions should aim to fully support progressive enhancement This probably requires to introduce a flash API to manage feedback without any client side JavaScript This exists in many backend frameworks and Remix offers a session flash API Related info that might interest you with action FORM ACTION you can extend React s progressive enhancement behavior Zero To Shipped Master Fast Paced Fullstack Development and Finally ship that product‍React dev Using TypeScript new official documentation page Next js RFC Google Tag Manager and gtag in next third parties offers to integrate Google Analytics using a hook rather than a component with possibly Web Worker support Million js Automatic Mode Video trailerThings you forgot or never knew because of React a very long criticism of React considered to be an outdated framework It s still an interesting read even if I disagree and think the author is unfair Fantastic closures and how to find them in React explains what a stale closure is in React and presents various cases that can introduce this problem then proposes a solution based on useRef The simplest example to understand Server Actions in Next js very simple Server Actions example easy to understand and providing a practical way of making RPC calls to your API On React Suspense s throttling highlights a surprising behaviour of React when you nest lt Suspense gt Quit Your YAP ing encourages you to abandon the Yet Another Prop syndrome and use composition instead Node js s Config Hell Problem Deno s criticism of projects like Next js which often have dozens of configuration files Supabase Vercel Integration and Next js App Router Support an integration worth studying Includes APIs with interesting names like createClientComponentClient Lifting Off with AstroForm Validation with React Hook FormIntroducing a new lint rule for React Testing LibraryHow to Use Jotai and useTransition for MutationCoding the stars An interactive constellation with Three js and React Three FiberReact Aria August Releases HTML form submit reset DropZone FileTrigger Natuerlich Composable interactions for WebXR experiences With React Three Fiber supportReakit August updateObsidiosaurus Obsidian gt Docusaurus Convertertwpanda Easily migrate code from Tailwind to Panda CSSWhy I Stopped Using Next js And Chose Astro InsteadResponsive Framer Motion with Tailwind CSSDominik Dorfmeister React Query With The App Router SponsorCoderPad Code together before you work togetherHiring front end developers is hard But engineering teams ーincluding at Netflix Spotify and LinkedIn ーhave found a better way Skip the algorithm interviews and run front end interviews in a fully customizable and collaborative IDE where you can drag and drop a React and Angular or Vue repoadd packages with npm installlet candidates use ChatGPT live in the interviewwatch amp share code playback after the interviewUse CoderPad to run fast fair and real coding interviews that candidates and interviewers trust Sign up for free today amp hire with confidence React NativeExpo Preview Fully customizable builds on EAS Build Expo has come up with a new system for EAS Build that allows you to customise the flow with a Yaml file which should give you a lot of flexibility to use the monorepo tools of your choice Nx Turbo Rush or add your own CI steps It looks quite similar to GitHub Actions TIL it seems EAS is using Fastlane on iOS builds Expo Proof of concept expo sqlite integration with CR SQLite SQLite and CRDT integration to ease creation of local first mobile apps Expo Proof of concept Expo CLI Dev Tools Plugins Expo wants to offer a plug in system for creating DevTools and presents us a demo with Apollo DevTools This should eventually replace Flipper plugins Reanimated on react native windows demoAsync Components use hook demoHalf of the Top iOS Sports apps are powered by React NativeTale of a Web Developer Improving Startup Performance for a large React Native AppAdding React Native to a complex app part seriesGetting started with react native storybookExploring React Native s New Architecture A Peek into the New Architecture️The React Native Show Podcast Databases for mobile apps React Native amp RealmReact Native EU Wrocław September is offering us on conference tickets with code thisweekinreact OtherGecko Firefox Intent to Prototype has selectorWhat Does It Mean for Web Browsers to Have a BaselineDeprecating the unload eventA Blog Post With Every HTML ElementHow layout position impacts three big web performance leversAnnouncing TypeScript RCZod readonly ViteConf October th FunSee ya 2023-08-17 08:39:54
海外TECH DEV Community Windows Talker (Part 4) https://dev.to/schbenedikt/windows-talker-part-4-448e Windows Talker Part Hello to my th part of the series Windows Talker This is now a shorter article because it s only new commands I added But you can still help me by writing your opinion in the comments or by registering in my course and starting a new discussion But now we come to the new terms edge Microsoft Edge openschrome Microsoft Chrome will be openedteams Microsoft Teams will be opened SchBenedikt WinTalker An alternative to Windows Copilot to change Windows settings via text input WinTalkerAn alternative to Windows Copilot to change Windows settings via text input Why use Windows Copilot which doesn t officially exist yet when there is a much better alternative View on GitHubFeel free to write your thoughts on this project in the comments and leave a like Best regards schBenedikt 2023-08-17 08:32:40
海外TECH DEV Community Front Desk Software for Hotel https://dev.to/shubhneetgulati/front-desk-software-for-hotel-22fo Front Desk Software for HotelFront Desk Software revolutionizes hospitality management Seamlessly integrating reservations check ins and guest information it streamlines operations and enhances guest experiences What is Front Desk SoftwareIts intuitive interface empowers staff to efficiently manage bookings room assignments and guest requests Real time updates ensure accurate occupancy tracking and facilitate prompt responses Guest data preferences and communication history are readily accessible enabling personalized service With integrated billing and payment processing it simplifies financial transactions From boutique inns to large hotels Front Desk Software optimizes workflows boosts guest satisfaction and fosters a modern efficient hospitality environment It s the key to ensuring smooth front of house operations and creating lasting positive impressions How does Front Desk Software helps in Hostels Front Desk Software plays a pivotal role in optimizing hostel management It simplifies and automates various tasks enhancing operational efficiency and guest satisfaction The software centralizes reservation management enabling seamless online bookings and real time availability updates Check ins become smoother with digital registration and key management reducing wait times Guest information preferences and communication history are readily accessible enabling personalized service Front Desk Software also aids in dormitory allocation ensuring efficient room assignments and optimizing occupancy Housekeeping schedules and maintenance requests can be managed ensuring cleanliness and a well maintained environment Integrated billing and payment processing streamline financial transactions while reporting tools provide insights for informed decision making Overall Front Desk Software transforms hostels into organized guest centric establishments delivering an exceptional experience to travelers Top benefits of front desk softwareEfficient Operations Front desk software streamlines daily tasks such as check ins check outs and reservations It reduces manual paperwork minimizes errors and accelerates processes leading to smoother operations and improved staff productivity Enhanced Guest Experience With access to guest information preferences and communication history staff can provide personalized service and cater to individual needs This elevates guest satisfaction fosters loyalty and increases the likelihood of positive reviews and repeat visits Real Time Updates Front desk software offers real time insights into room availability occupancy rates and reservations This ensures accurate decision making effective resource allocation and better management of peak periods or sudden changes Integrated Financial Management Billing invoicing and payment processing are seamlessly integrated within the software This simplifies financial transactions reduces the chances of errors and improves transparency in financial operations Data Driven Insights Front desk software generates detailed reports and analytics on occupancy trends revenue sources and guest preferences These insights empower management to make informed decisions fine tune strategies and adapt services to meet evolving guest needs In summary front desk software optimizes operations enriches guest interactions ensures real time information accuracy streamlines financial processes and provides valuable data driven insights for continuous improvement in hospitality management Which Company have the best Front Desk Software for Hospitality Industry BOTSHOT efrontdesk is being touted as the best front desk software for the hospitality industry it s important to consider various factors before making a decision Here are a few points to consider when evaluating efrontdesk or any front desk software Features and Functionality Assess whether efrontdesk offers the features you need such as reservation management guest profiles check in check out room assignments and communication tools User Friendly Interface A user friendly interface is crucial for staff adoption Ensure that the software is intuitive and easy to navigate Integration Check if efrontdesk can integrate with other systems you use such as property management systems online booking platforms and payment gateways Scalability Consider whether the software can grow with your business accommodating multiple properties or expanding functionalities Support and Training Adequate customer support and training are vital for a successful implementation Look for reviews or testimonials from other users regarding their experience with support Cost and Value Evaluate the pricing structure and determine if the features offered align with the cost Consider the value the software brings to your operations Security Ensure that the software follows industry standard security practices to protect guest data and sensitive information Customization Check if efrontdesk can be customized to match your specific business needs and branding Reviews and Reputation Look for user reviews and testimonials from other hospitality businesses that have used efrontdesk Their experiences can provide insights into the software s effectiveness Demo and Trial Whenever possible request a demo or trial period to test the software s functionality and suitability for your business Remember that the best software can vary based on individual business requirements It s advisable to compare multiple options request demos and gather feedback from others in the hospitality industry before making a decision 2023-08-17 08:16:06
海外TECH DEV Community Effortless Containerization: Deploying Spring Boot and MySQL with Docker and Docker Compose https://dev.to/thecodersden/effortless-containerization-deploying-spring-boot-and-mysql-with-docker-and-docker-compose-e8n Effortless Containerization Deploying Spring Boot and MySQL with Docker and Docker ComposeGreetings In the increasing complexity of software development there is a general shift from manual configuration to automation Be it development or deployment seamless development and integration is the word of the town Hence in this blog I plan to crack open a critical aspect of DevOps Containerization What is Containerization Before we dive into that first let us understand the old school way of doing it Make a supposition that you are developing an application You know every inch of this application Be it the databases or the environments you have everything set up Now consider that this application is done with development You now want to host it someplace For instance let s say you decided to use Amazon EC for its ease of use Now let s look at the steps that you would perform to get this application running at least Clone the application into the EC instanceInstall required dependencies Java NodeJS etc Set up the required environmental variablesTest the application for bugs or errors While this might look trivial it becomes a pain when you have to do it over and over again for all of your applications There is always a chance that some OS feature would break your application some dependency won t be installed some environmental variable might not be configured It becomes extremely difficult to debug such applications Here is where containerization comes to our rescue A container includes everything needed for an application to run the code runtime system libraries and settings This self contained unit ensures that the application behaves consistently regardless of the environment it s deployed in Containers are lightweight portable and can be easily moved between different host systems or cloud platforms without significant modifications Key features and benefits of containerization include Isolation Containers are isolated from each other and from the host system preventing conflicts between dependencies and runtime environments Consistency Containers ensure that an application behaves the same way in every environment reducing the it works on my machine problem Portability Containers can be moved between different systems or cloud platforms with minimal effort making application deployment and migration easier Resource Efficiency Containers share the host OS kernel resulting in lower overhead compared to traditional virtualization Scalability Containers can be rapidly scaled up or down to accommodate varying workloads and demands Version Control Container images can be versioned allowing teams to track changes and roll back to previous versions DevOps Enablement Containers facilitate DevOps practices by enabling continuous integration continuous delivery and automated deployment RoadmapIn this blog we would be doing the following things Create a simple SpringBoot application to manage a Person entitySet up MySQL using DockerCreate a Docker Image of our applicationDevelop a run and deploy of the entire infrastructure using Docker ComposeTo follow along clone this repository also leave a star maybe So let s get started Creating the SpringBoot applicationWe would start with our SpringBoot application Head over to Spring Initializr and create a project using the following settings and dependencies To summarize we are using Lombok For annotation based POJOs Spring Web For our web application Spring Data JPA For Hibernate ORMMySQL Driver Enables our application to talk to a MySQL database Spring Boot Actuator For health checksOnce you are satisfied generate the project extract it and open it with your favourite code editor We would be creating the following classes Person Base entity for holding the person PersonPayload Contains the request body for a Person object PersonDTO Contains the DTO of the person object when the API returns data PersonService Contains business interface for managing persons PersonServiceImpl Contains the implementation of PersonService PersonController Exposes the endpoints for managing Persons PersonRepository Enables us to use JPAHere are a list of endpoints we would be developing in PersonController POST api person Creates a person PUT api person personId Updates a person with the given dataGET api person all page lt page index gt amp size lt page size gt Gets the list of all persons on the database page and size helps us to control the index of a page and number of items in a page in pagination GET api person personId Gets a person by their IDDELETE api person personId Delete a person by their IDOur final folder structure should look something like this Since this blog is focussed on getting Docker set up I would be skipping the code explanation in here You can always clone the repository and check the code Let s go through the application properties fileAs you can see I have injected environmental variables This would allow us to resolve the values at runtime It gives us the flexibility to configure our application without actually touching any of the code Any change that you would like to make to the environments all you need to do is tweak the values as per your wish in the system s environment I will be using a env file to feed the values into the application Nearly every IDE has the support for doing so In case you can t figure out how to include a env file into your execution environment you can try setting those values in the environment of your OS Alternatively you can let that untouched since all the keys have a default value assigned to them env docker Used when deployed using docker compose env local Used when using just docker Now we have our application ready Before we are actually able to run it we need to launch MySQL which we will do next Launching MySQL using DockerTo begin with this step first make sure that you have docker installed This article provides an excellent guide in letting you set up docker Once it is set up we are ready to move forward We will be launching a MySQL docker container using this command docker run name springboot test p e MYSQL ROOT PASSWORD root d mysqlHere is a breakdown into what this command does It creates us a container from the mysql docker imageIt assigns a name to that container using name springboot testIt exposes the standard mysql port of the docker container to the host s network using p It sets the root password of the docker image to root using e MYSQL ROOT PASSWORD rootLastly it tells the container to run in detached mode meaning it won t be attached to the console where we are writing this command using the d flagWith that we have a brand new mysql container up and running which you can check using docker psAt this point of time we are ready to launch our springboot application Go to the root of the project and runIf you have maven installed mvn spring boot runIf you don t have maven mvnw spring boot runYou can verify that the application is running using curl http localhost actuator healthNow we are ready to finally dockerize the application Dockerizing the applicationWe use Dockerfile to containerize any application using docker This article provides all that you need to know to get started For starters I ll run down through the docker image that I m creating Go to the project s rootCreate a file named DockerfilePaste the following content in the file The base image on which we would build our imageFROM openjdk jdk alpine Install curl and mavenRUN apk no cache add curl maven Set environment variablesENV DB HOST DB HOST ENV DB NAME DB NAME ENV DB USER DB USER ENV DB PASS DB PASS Expose port EXPOSE Set the working directoryWORKDIR app Copy the pom xml file to the working directoryCOPY pom xml Resolve the dependencies in the pom xml fileRUN mvn dependency resolve Copy the source code to the working directoryCOPY src src Build the projectRUN mvn package DskipTests Run the applicationENTRYPOINT java jar target application jar Notice that I m still not hard coding the environmental variables Also note that the last line mentions using the command java jar target application jar to launch the container For this to happen we need to first set the build name to application in the pom xml To optimize the docker build process I have first copied the pom xml and then resolved the dependencies before actually copying our soruce code This is done with the purpose of reducing the number of layers docker rebuild during its build process Source code is bound to change often Putting that at the very top would mean all the subsequent layers would be rebuilt Docker networkingBefore we get started with running the application let s first get a few points right about networking in docker When we run a docker image the container boots up into a separate docker network that works in isolation to our host network and other docker containers Hence container A can t ping container B if they are running on different networks In our case we would be running the springboot application and MySQL database So if we let them run in different networks our containers won t be able to intercommunicate There are two ways to address this issue Create a custom network and attaching our containers to that network Attaching the containers directly to the host network Using custom networkLet s start by creating a docker networkdocker network create dummy networkOnce done you can verify this usingdocker network lsNow we need to migrate our MySQL container to this network We do this by docker network disconnect bridge springboot testdocker network connect dummy network springboot testNow we can verify that these commands work by inspecting the Containers section in the output of this command docker network inspect dummy network Using host networkRecall that we used the flag p while creating our MySQL container This flag creates a channel in the network of our MySQL container that allows us to communicate with the container s port via our hosts port We can bypass this by instructing docker to run the container directly on the host s network This can be done by docker run name springboot test network host e MYSQL ROOT PASSWORD root d mysqlNotice that I replaced the p flag with the network flag When we are using the host network driver port mappings are neglected by docker Now that we know the fixes let s move towards making the application work Running the SpringBoot applicationWe have created our Dockerfile in the previous sections Now first we need to create a docker image out of that file To do this go to the root directory of the project and run docker build t application latest Next rundocker run name temp rm p env file env local network dummy network application latestThis command will do the following name temp will set the name of the container as temp rm will remove the container once it s stopped p will map the container s port to the host s port env file env local will read the environments from the env local file network dummy network will associate the container to dummy networkLastly it will launch the docker containerIn case you get any error stating that the DB connection fail I would like to point you to the env local file In there we have a key called DB HOST with the value set as springboot test This is the name we used when launching the MySQL docker container The above command will only work when these conditions are satisfied The MySQL container is named springboot testBoth the database and the application are in the same network Alternatively if you want to use some other name for the MySQL container you can should the name in the env local file aswell Now that we have everything up and running we can verify our network again using the docker network inspect dummy network command Using docker composeNo doubt that most of you have felt that this is too much of configuration Yes configuration comes as the cost of making applications reliable and secure But don t feel demotivated docker compose is here to rescue docker compose is a plugin that reads deployment configurations from a file typically named docker compose yaml and deploys the entire infrastructure at one click For doing this let us first create the docker compose yaml file in the root directory of the project Then paste the following into the file version services mysql container name mysql image mysql ports environment MYSQL ROOT PASSWORD admin networks stack healthcheck test CMD mysqladmin ping h localhost u root padmin interval s timeout s retries application container name application build context dockerfile Dockerfile ports env file env docker networks stack depends on mysql condition service healthynetworks stack name stack driver bridgeAs you can see we have created a network named stack We have created two services application and mysql Both of these services come under the stack network In the env docker file I have set the DB HOST to mysql This name corresponds to the name of the service In the docker file I have added a dependency of mysql in application service This means that the application service wont start before the mysql service reaches the service healthy state Once done shut down your previous containers using docker stop springboot testdocker stop tempNow we can fire up the entire infrastructure using docker compose upThis command will take some time to start up A few flags that might come in handy d Starts in detached mode build Rebuilds the images Useful when you have made any changes to the source code When you are done playing around with you can shut down the entire thing by using docker compose down ConclusionSo that was all about using docker to make your lives easier I hope you have quiet a few tricks by now Feel free to leave a comment in case you find something off 2023-08-17 08:03:17
金融 JPX マーケットニュース [東証]監理銘柄(確認中)の指定:(株)T&K TOKA https://www.jpx.co.jp/news/1023/20230817-11.html tktoka 2023-08-17 17:10:00
金融 ニッセイ基礎研究所 英国雇用関連統計(23年7月)-実質賃金伸び率がプラスに回帰 https://www.nli-research.co.jp/topics_detail1/id=75862?site=nli まず、月のデータとして公表されている求人数および給与所得者数を確認すると、求人数は年月の平均で万件となり年月平均万件をピークに減少傾向が続いており図表、産業別には、最近は飲食・居住、医療、専門サービスといったサービス業を中心に減少が目立っている。 2023-08-17 17:05:29
ニュース BBC News - Home Saudi crown prince invited to visit UK, government source says https://www.bbc.co.uk/news/uk-politics-66531007?at_medium=RSS&at_campaign=KARANGA jamal 2023-08-17 08:04:06
ビジネス 東洋経済オンライン 「水曜日のダウンタウン」が"希望の星"とされる訳 史上初の1億再生超が暗示するバラエティの未来 | テレビ | 東洋経済オンライン https://toyokeizai.net/articles/-/695327?utm_source=rss&utm_medium=http&utm_campaign=link_back 再生回数 2023-08-17 17:20:00
ニュース Newsweek ウクライナ軍の捕虜になったロシア軍少佐...取り調べで暴露した「大損失」 https://www.newsweekjapan.jp/stories/world/2023/08/post-102437.php さらに彼は、ウクライナ軍に身柄を拘束される前は、ウクライナ軍について「ナチス」で「ファシスト的な考え方」を支持している者たちだと考えていたと述べ、プーチンやロシア政府のプロパガンダによって押しつけられたこの論調を自身の部隊にも伝えていたと語った。 2023-08-17 17:40:00
ニュース Newsweek ヒョウ柄の極小ビキニで際どい開脚...ブリトニーのポールダンス動画に「これは大丈夫じゃない」とネットの声、一体何が? https://www.newsweekjapan.jp/stories/world/2023/08/post-102435.php ヒョウ柄の極小ビキニで際どい開脚ブリトニーのポールダンス動画に「これは大丈夫じゃない」とネットの声、一体何が【動画】激しく腰振り、大胆開脚ヒョウ柄ランジェリーでポールダンスを披露するブリトニー露出度の高い過激な姿やセクシーなダンス動画をSNSに投稿し、これまで度々物議を醸してきたブリトニー・スピアーズが、ヒョウ柄の極小ビキニ姿でポールダンスをする動画をインスタグラムに投稿し、話題となっている。 2023-08-17 17:10:00
マーケティング MarkeZine 【無料】有益なデータをどのように活用すべきか。ZETA山崎氏が語る、リテールECサイトのデータ活用 http://markezine.jp/article/detail/43103 無料 2023-08-17 17:30:00
マーケティング MarkeZine セブン&アイ・クリエイトリンクとドワンゴに聞く、生活者を動かすためのプランニング方法【参加無料】 http://markezine.jp/article/detail/43102 参加無料 2023-08-17 17:15:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)